mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 18:03:50 +00:00
fix(ai): support gemini-3.1 flash-lite and thinking matching
closes #1785
This commit is contained in:
parent
e64cd15c25
commit
2af0c98b5f
5 changed files with 54 additions and 8 deletions
|
|
@ -742,6 +742,27 @@ async function generateModels() {
|
|||
});
|
||||
}
|
||||
|
||||
// Add missing Gemini 3.1 Flash Lite Preview until models.dev includes it.
|
||||
if (!allModels.some((m) => m.provider === "google" && m.id === "gemini-3.1-flash-lite-preview")) {
|
||||
allModels.push({
|
||||
id: "gemini-3.1-flash-lite-preview",
|
||||
name: "Gemini 3.1 Flash Lite Preview",
|
||||
api: "google-generative-ai",
|
||||
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
||||
provider: "google",
|
||||
reasoning: true,
|
||||
input: ["text", "image"],
|
||||
cost: {
|
||||
input: 0,
|
||||
output: 0,
|
||||
cacheRead: 0,
|
||||
cacheWrite: 0,
|
||||
},
|
||||
contextWindow: 1048576,
|
||||
maxTokens: 65536,
|
||||
});
|
||||
}
|
||||
|
||||
// Add missing gpt models
|
||||
if (!allModels.some(m => m.provider === "openai" && m.id === "gpt-5-chat-latest")) {
|
||||
allModels.push({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue