mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-19 08:01:19 +00:00
feat(ai): add gemini-3.1-pro-preview to google-gemini-cli provider (#1599)
Add Gemini 3.1 Pro Preview model to the Cloud Code Assist (google-gemini-cli) provider for parity with the google and google-vertex providers that already include this model. Tested and confirmed working via the Cloud Code Assist API endpoint.
This commit is contained in:
parent
4939434997
commit
96cf7425ca
2 changed files with 29 additions and 0 deletions
|
|
@ -1012,6 +1012,18 @@ async function generateModels() {
|
||||||
contextWindow: 1048576,
|
contextWindow: 1048576,
|
||||||
maxTokens: 65535,
|
maxTokens: 65535,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "gemini-3.1-pro-preview",
|
||||||
|
name: "Gemini 3.1 Pro Preview (Cloud Code Assist)",
|
||||||
|
api: "google-gemini-cli",
|
||||||
|
provider: "google-gemini-cli",
|
||||||
|
baseUrl: CLOUD_CODE_ASSIST_ENDPOINT,
|
||||||
|
reasoning: true,
|
||||||
|
input: ["text", "image"],
|
||||||
|
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
||||||
|
contextWindow: 1048576,
|
||||||
|
maxTokens: 65535,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
allModels.push(...cloudCodeAssistModels);
|
allModels.push(...cloudCodeAssistModels);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3498,6 +3498,23 @@ export const MODELS = {
|
||||||
contextWindow: 1048576,
|
contextWindow: 1048576,
|
||||||
maxTokens: 65535,
|
maxTokens: 65535,
|
||||||
} satisfies Model<"google-gemini-cli">,
|
} satisfies Model<"google-gemini-cli">,
|
||||||
|
"gemini-3.1-pro-preview": {
|
||||||
|
id: "gemini-3.1-pro-preview",
|
||||||
|
name: "Gemini 3.1 Pro Preview (Cloud Code Assist)",
|
||||||
|
api: "google-gemini-cli",
|
||||||
|
provider: "google-gemini-cli",
|
||||||
|
baseUrl: "https://cloudcode-pa.googleapis.com",
|
||||||
|
reasoning: true,
|
||||||
|
input: ["text", "image"],
|
||||||
|
cost: {
|
||||||
|
input: 0,
|
||||||
|
output: 0,
|
||||||
|
cacheRead: 0,
|
||||||
|
cacheWrite: 0,
|
||||||
|
},
|
||||||
|
contextWindow: 1048576,
|
||||||
|
maxTokens: 65535,
|
||||||
|
} satisfies Model<"google-gemini-cli">,
|
||||||
},
|
},
|
||||||
"google-vertex": {
|
"google-vertex": {
|
||||||
"gemini-1.5-flash": {
|
"gemini-1.5-flash": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue