@yrpri/api 9.0.166 → 9.0.168

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -543,6 +543,40 @@ export class NewAiModelSetup {
543
543
  await openAiGpt41Nano.save();
544
544
  log.debug("OpenAI model already exists: GPT-4.1 nano");
545
545
  }
546
+ const openAiGpt5 = await PsAiModel.findOne({
547
+ where: { name: "GPT-5" },
548
+ });
549
+ const openAiGpt5Config = {
550
+ type: PsAiModelType.TextReasoning,
551
+ modelSize: PsAiModelSize.Large,
552
+ provider: "openai",
553
+ prices: {
554
+ costInTokensPerMillion: 1.25,
555
+ costOutTokensPerMillion: 10.0,
556
+ costInCachedContextTokensPerMillion: 0.125,
557
+ currency: "USD",
558
+ },
559
+ maxTokensOut: 128000,
560
+ maxContextTokens: 400000,
561
+ defaultTemperature: 0.7,
562
+ model: "gpt-5",
563
+ active: true,
564
+ };
565
+ if (!openAiGpt5) {
566
+ await PsAiModel.create({
567
+ name: "GPT-5",
568
+ organization_id: 1,
569
+ user_id: userId,
570
+ configuration: openAiGpt5Config,
571
+ });
572
+ log.info("Created OpenAI model: GPT-5");
573
+ }
574
+ else {
575
+ openAiGpt5.set("configuration", openAiGpt5Config);
576
+ openAiGpt5.changed("configuration", true);
577
+ await openAiGpt5.save();
578
+ log.debug("OpenAI model already exists: GPT-5");
579
+ }
546
580
  }
547
581
  /**
548
582
  * Seeds Google models.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yrpri/api",
3
- "version": "9.0.166",
3
+ "version": "9.0.168",
4
4
  "license": "MIT",
5
5
  "author": "Robert Bjarnason & Citizens Foundation",
6
6
  "repository": {
@@ -25,7 +25,7 @@
25
25
  "@google-cloud/vertexai": "^1.10.0",
26
26
  "@google-cloud/vision": "^5.1.0",
27
27
  "@node-saml/passport-saml": "^5.0.1",
28
- "@policysynth/agents": "^1.3.137",
28
+ "@policysynth/agents": "^1.3.138",
29
29
  "async": "^3.2.6",
30
30
  "authorized": "^1.0.0",
31
31
  "aws-sdk": "^2.1692.0",