@yrpri/api 9.0.226 → 9.0.229

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.
@@ -11,7 +11,7 @@ export declare class NewAiModelSetup {
11
11
  /**
12
12
  * Seeds OpenAI models.
13
13
  * This currently creates several models including GPT-4o, GPT-4o Mini, o1 Mini,
14
- * o1 Preview, o1 24, o3 mini, and GPT-5.4 variants.
14
+ * o1 Preview, o1 24, o3 mini, GPT-5.4 variants, and GPT-5.5.
15
15
  */
16
16
  static seedOpenAiModels(userId: number): Promise<void>;
17
17
  /**
@@ -162,7 +162,7 @@ export class NewAiModelSetup {
162
162
  /**
163
163
  * Seeds OpenAI models.
164
164
  * This currently creates several models including GPT-4o, GPT-4o Mini, o1 Mini,
165
- * o1 Preview, o1 24, o3 mini, and GPT-5.4 variants.
165
+ * o1 Preview, o1 24, o3 mini, GPT-5.4 variants, and GPT-5.5.
166
166
  */
167
167
  static async seedOpenAiModels(userId) {
168
168
  // GPT-4o
@@ -859,6 +859,43 @@ export class NewAiModelSetup {
859
859
  await openAiGpt54Pro.save();
860
860
  log.debug("OpenAI model already exists: GPT-5.4 Pro");
861
861
  }
862
+ const openAiGpt55 = await PsAiModel.findOne({
863
+ where: { name: "GPT-5.5" },
864
+ });
865
+ const openAiGpt55Config = {
866
+ type: PsAiModelType.TextReasoning,
867
+ modelSize: PsAiModelSize.Large,
868
+ provider: "openai",
869
+ prices: {
870
+ costInTokensPerMillion: 12.5,
871
+ costOutTokensPerMillion: 75.0,
872
+ costInCachedContextTokensPerMillion: 1.25,
873
+ priorityTokensIn: 12.5,
874
+ priorityTokensCachedIn: 1.25,
875
+ priorityTokensOut: 75.0,
876
+ currency: "USD",
877
+ },
878
+ maxTokensOut: 128000,
879
+ maxContextTokens: 1050000,
880
+ defaultTemperature: 0.7,
881
+ model: "gpt-5.5",
882
+ active: true,
883
+ };
884
+ if (!openAiGpt55) {
885
+ await PsAiModel.create({
886
+ name: "GPT-5.5",
887
+ organization_id: 1,
888
+ user_id: userId,
889
+ configuration: openAiGpt55Config,
890
+ });
891
+ log.info("Created OpenAI model: GPT-5.5");
892
+ }
893
+ else {
894
+ openAiGpt55.set("configuration", openAiGpt55Config);
895
+ openAiGpt55.changed("configuration", true);
896
+ await openAiGpt55.save();
897
+ log.debug("OpenAI model already exists: GPT-5.5");
898
+ }
862
899
  }
863
900
  /**
864
901
  * Seeds Google models.
@@ -983,7 +1020,7 @@ export class NewAiModelSetup {
983
1020
  costInCachedContextTokensPerMillion: 0.07,
984
1021
  currency: "USD",
985
1022
  },
986
- model: "gemini-2.5-flash-lite-preview-09-2025",
1023
+ model: "gemini-2.5-flash-lite",
987
1024
  active: true,
988
1025
  maxTokensOut: 32000,
989
1026
  maxContextTokens: 1000000,
@@ -1279,6 +1316,7 @@ export class NewAiModelSetup {
1279
1316
  { name: "GPT-5.4 mini", envKey: "OPENAI_API_KEY" },
1280
1317
  { name: "GPT-5.4 nano", envKey: "OPENAI_API_KEY" },
1281
1318
  { name: "GPT-5.4 Pro", envKey: "OPENAI_API_KEY" },
1319
+ { name: "GPT-5.5", envKey: "OPENAI_API_KEY" },
1282
1320
  { name: "Gemini 3 Pro Preview", envKey: "GEMINI_API_KEY" },
1283
1321
  { name: "Gemini 3.1 Pro Preview", envKey: "GEMINI_API_KEY" },
1284
1322
  { name: "Gemini 3.1 Flash Lite Preview", envKey: "GEMINI_API_KEY" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yrpri/api",
3
- "version": "9.0.226",
3
+ "version": "9.0.229",
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.3.5",
27
27
  "@node-saml/passport-saml": "^5.1.0",
28
- "@policysynth/agents": "^1.3.177",
28
+ "@policysynth/agents": "^1.3.178",
29
29
  "async": "^3.2.6",
30
30
  "authorized": "^1.0.0",
31
31
  "aws-sdk": "^2.1693.0",