@yrpri/api 9.0.204 → 9.0.205
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.
|
@@ -826,6 +826,44 @@ export class NewAiModelSetup {
|
|
|
826
826
|
await gemini3ProPreview.save();
|
|
827
827
|
log.debug("Google model already exists: Gemini 3 Pro Preview");
|
|
828
828
|
}
|
|
829
|
+
const gemini31ProPreview = await PsAiModel.findOne({
|
|
830
|
+
where: { name: "Gemini 3.1 Pro Preview" },
|
|
831
|
+
});
|
|
832
|
+
const gemini31ProPreviewConfig = {
|
|
833
|
+
type: PsAiModelType.Text,
|
|
834
|
+
modelSize: PsAiModelSize.Medium,
|
|
835
|
+
provider: "google",
|
|
836
|
+
prices: {
|
|
837
|
+
costInTokensPerMillion: 2,
|
|
838
|
+
costOutTokensPerMillion: 12,
|
|
839
|
+
costInCachedContextTokensPerMillion: 1,
|
|
840
|
+
longContextTokenThreshold: 200000,
|
|
841
|
+
longContextCostInTokensPerMillion: 4.0,
|
|
842
|
+
longContextCostInCachedContextTokensPerMillion: 2,
|
|
843
|
+
longContextCostOutTokensPerMillion: 18,
|
|
844
|
+
currency: "USD",
|
|
845
|
+
},
|
|
846
|
+
model: "gemini-3.1-pro-preview",
|
|
847
|
+
active: true,
|
|
848
|
+
maxTokensOut: 100000,
|
|
849
|
+
maxContextTokens: 1000000,
|
|
850
|
+
defaultTemperature: 0.0,
|
|
851
|
+
};
|
|
852
|
+
if (!gemini31ProPreview) {
|
|
853
|
+
await PsAiModel.create({
|
|
854
|
+
name: "Gemini 3.1 Pro Preview",
|
|
855
|
+
organization_id: 1,
|
|
856
|
+
user_id: userId,
|
|
857
|
+
configuration: gemini31ProPreviewConfig,
|
|
858
|
+
});
|
|
859
|
+
log.info("Created Google model: Gemini 3.1 Pro Preview");
|
|
860
|
+
}
|
|
861
|
+
else {
|
|
862
|
+
gemini31ProPreview.set("configuration", gemini31ProPreviewConfig);
|
|
863
|
+
gemini31ProPreview.changed("configuration", true);
|
|
864
|
+
await gemini31ProPreview.save();
|
|
865
|
+
log.debug("Google model already exists: Gemini 3.1 Pro Preview");
|
|
866
|
+
}
|
|
829
867
|
const gemini30Flash = await PsAiModel.findOne({
|
|
830
868
|
where: { name: "Gemini 3.0 Flash" },
|
|
831
869
|
});
|
|
@@ -985,6 +1023,8 @@ export class NewAiModelSetup {
|
|
|
985
1023
|
{ name: "GPT-5", envKey: "OPENAI_API_KEY" },
|
|
986
1024
|
{ name: "GPT-5.1", envKey: "OPENAI_API_KEY" },
|
|
987
1025
|
{ name: "GPT-5.2", envKey: "OPENAI_API_KEY" },
|
|
1026
|
+
{ name: "Gemini 3 Pro Preview", envKey: "GEMINI_API_KEY" },
|
|
1027
|
+
{ name: "Gemini 3.1 Pro Preview", envKey: "GEMINI_API_KEY" },
|
|
988
1028
|
{ name: "Gemini 3.0 Flash", envKey: "GEMINI_API_KEY" },
|
|
989
1029
|
];
|
|
990
1030
|
const groupAccessConfig = [];
|