@yrpri/api 9.0.234 → 9.0.236

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.
@@ -1151,6 +1151,40 @@ export class NewAiModelSetup {
1151
1151
  await gemini31FlashLitePreview.save();
1152
1152
  log.debug("Google model already exists: Gemini 3.1 Flash Lite Preview");
1153
1153
  }
1154
+ const gemini35Flash = await PsAiModel.findOne({
1155
+ where: { name: "Gemini 3.5 Flash" },
1156
+ });
1157
+ const gemini35FlashConfig = {
1158
+ type: PsAiModelType.Text,
1159
+ modelSize: PsAiModelSize.Medium,
1160
+ provider: "google",
1161
+ prices: {
1162
+ costInTokensPerMillion: 1.5,
1163
+ costOutTokensPerMillion: 9.0,
1164
+ costInCachedContextTokensPerMillion: 0.15,
1165
+ currency: "USD",
1166
+ },
1167
+ model: "gemini-3.5-flash",
1168
+ active: true,
1169
+ maxTokensOut: 65536,
1170
+ maxContextTokens: 1048576,
1171
+ defaultTemperature: 0.0,
1172
+ };
1173
+ if (!gemini35Flash) {
1174
+ await PsAiModel.create({
1175
+ name: "Gemini 3.5 Flash",
1176
+ organization_id: 1,
1177
+ user_id: userId,
1178
+ configuration: gemini35FlashConfig,
1179
+ });
1180
+ log.info("Created Google model: Gemini 3.5 Flash");
1181
+ }
1182
+ else {
1183
+ gemini35Flash.set("configuration", gemini35FlashConfig);
1184
+ gemini35Flash.changed("configuration", true);
1185
+ await gemini35Flash.save();
1186
+ log.debug("Google model already exists: Gemini 3.5 Flash");
1187
+ }
1154
1188
  const gemini30Flash = await PsAiModel.findOne({
1155
1189
  where: { name: "Gemini 3.0 Flash" },
1156
1190
  });
@@ -1320,6 +1354,7 @@ export class NewAiModelSetup {
1320
1354
  { name: "Gemini 3 Pro Preview", envKey: "GEMINI_API_KEY" },
1321
1355
  { name: "Gemini 3.1 Pro Preview", envKey: "GEMINI_API_KEY" },
1322
1356
  { name: "Gemini 3.1 Flash Lite Preview", envKey: "GEMINI_API_KEY" },
1357
+ { name: "Gemini 3.5 Flash", envKey: "GEMINI_API_KEY" },
1323
1358
  { name: "Gemini 3.0 Flash", envKey: "GEMINI_API_KEY" },
1324
1359
  ];
1325
1360
  const groupAccessConfig = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yrpri/api",
3
- "version": "9.0.234",
3
+ "version": "9.0.236",
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.6",
27
27
  "@node-saml/passport-saml": "^5.1.0",
28
- "@policysynth/agents": "^1.3.183",
28
+ "@policysynth/agents": "^1.3.184",
29
29
  "async": "^3.2.6",
30
30
  "authorized": "^1.0.0",
31
31
  "aws-sdk": "^2.1693.0",