@yrpri/api 9.0.198 → 9.0.199

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.
@@ -897,6 +897,40 @@ export class NewAiModelSetup {
897
897
  await gemini3FlashPreview.save();
898
898
  log.debug("Google model already exists: Gemini 3 Flash Preview");
899
899
  }
900
+ const gemini30Flash = await PsAiModel.findOne({
901
+ where: { name: "Gemini 3.0 Flash" },
902
+ });
903
+ const gemini30FlashConfig = {
904
+ type: PsAiModelType.Text,
905
+ modelSize: PsAiModelSize.Medium,
906
+ provider: "google",
907
+ prices: {
908
+ costInTokensPerMillion: 0.5,
909
+ costOutTokensPerMillion: 3.0,
910
+ costInCachedContextTokensPerMillion: 0.25,
911
+ currency: "USD",
912
+ },
913
+ model: "gemini-3.0-flash-preview",
914
+ active: true,
915
+ maxTokensOut: 100000,
916
+ maxContextTokens: 1000000,
917
+ defaultTemperature: 0.0,
918
+ };
919
+ if (!gemini30Flash) {
920
+ await PsAiModel.create({
921
+ name: "Gemini 3.0 Flash",
922
+ organization_id: 1,
923
+ user_id: userId,
924
+ configuration: gemini30FlashConfig,
925
+ });
926
+ log.info("Created Google model: Gemini 3.0 Flash");
927
+ }
928
+ else {
929
+ gemini30Flash.set("configuration", gemini30FlashConfig);
930
+ gemini30Flash.changed("configuration", true);
931
+ await gemini30Flash.save();
932
+ log.debug("Google model already exists: Gemini 3.0 Flash");
933
+ }
900
934
  }
901
935
  /**
902
936
  * Master seeding function which calls the provider-specific functions
@@ -1013,6 +1047,7 @@ export class NewAiModelSetup {
1013
1047
  { name: "GPT-5", envKey: "OPENAI_API_KEY" },
1014
1048
  { name: "GPT-5.1", envKey: "OPENAI_API_KEY" },
1015
1049
  { name: "GPT-5.2", envKey: "OPENAI_API_KEY" },
1050
+ { name: "Gemini 3.0 Flash", envKey: "GEMINI_API_KEY" },
1016
1051
  ];
1017
1052
  const groupAccessConfig = [];
1018
1053
  for (const { name, envKey } of modelsMapping) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yrpri/api",
3
- "version": "9.0.198",
3
+ "version": "9.0.199",
4
4
  "license": "MIT",
5
5
  "author": "Robert Bjarnason & Citizens Foundation",
6
6
  "repository": {