@yrpri/api 9.0.205 → 9.0.207

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.
@@ -864,6 +864,40 @@ export class NewAiModelSetup {
864
864
  await gemini31ProPreview.save();
865
865
  log.debug("Google model already exists: Gemini 3.1 Pro Preview");
866
866
  }
867
+ const gemini31FlashLitePreview = await PsAiModel.findOne({
868
+ where: { name: "Gemini 3.1 Flash Lite Preview" },
869
+ });
870
+ const gemini31FlashLitePreviewConfig = {
871
+ type: PsAiModelType.Text,
872
+ modelSize: PsAiModelSize.Medium,
873
+ provider: "google",
874
+ prices: {
875
+ costInTokensPerMillion: 0.25,
876
+ costOutTokensPerMillion: 1.5,
877
+ costInCachedContextTokensPerMillion: 0.025,
878
+ currency: "USD",
879
+ },
880
+ model: "gemini-3.1-flash-lite-preview",
881
+ active: true,
882
+ maxTokensOut: 65536,
883
+ maxContextTokens: 1000000,
884
+ defaultTemperature: 0.0,
885
+ };
886
+ if (!gemini31FlashLitePreview) {
887
+ await PsAiModel.create({
888
+ name: "Gemini 3.1 Flash Lite Preview",
889
+ organization_id: 1,
890
+ user_id: userId,
891
+ configuration: gemini31FlashLitePreviewConfig,
892
+ });
893
+ log.info("Created Google model: Gemini 3.1 Flash Lite Preview");
894
+ }
895
+ else {
896
+ gemini31FlashLitePreview.set("configuration", gemini31FlashLitePreviewConfig);
897
+ gemini31FlashLitePreview.changed("configuration", true);
898
+ await gemini31FlashLitePreview.save();
899
+ log.debug("Google model already exists: Gemini 3.1 Flash Lite Preview");
900
+ }
867
901
  const gemini30Flash = await PsAiModel.findOne({
868
902
  where: { name: "Gemini 3.0 Flash" },
869
903
  });
@@ -1025,6 +1059,7 @@ export class NewAiModelSetup {
1025
1059
  { name: "GPT-5.2", envKey: "OPENAI_API_KEY" },
1026
1060
  { name: "Gemini 3 Pro Preview", envKey: "GEMINI_API_KEY" },
1027
1061
  { name: "Gemini 3.1 Pro Preview", envKey: "GEMINI_API_KEY" },
1062
+ { name: "Gemini 3.1 Flash Lite Preview", envKey: "GEMINI_API_KEY" },
1028
1063
  { name: "Gemini 3.0 Flash", envKey: "GEMINI_API_KEY" },
1029
1064
  ];
1030
1065
  const groupAccessConfig = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yrpri/api",
3
- "version": "9.0.205",
3
+ "version": "9.0.207",
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.162",
28
+ "@policysynth/agents": "^1.3.164",
29
29
  "async": "^3.2.6",
30
30
  "authorized": "^1.0.0",
31
31
  "aws-sdk": "^2.1692.0",