forked from agents/opencode
chore: 启用 Google provider 并切换 Gemini 至 google 前缀
This commit is contained in:
+21
-21
@@ -53,27 +53,27 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
// "google": {
|
||||
// "npm": "@ai-sdk/google",
|
||||
// "options": {
|
||||
// "baseURL": "{env:AI_GATEWAY_BASE_URL}/v1beta",
|
||||
// "apiKey": "{env:AI_GATEWAY_API_KEY}"
|
||||
// },
|
||||
// "models": {
|
||||
// "gemini-3.1-pro-preview": {
|
||||
// "name": "Gemini 3.1 Pro",
|
||||
// "reasoning": true,
|
||||
// "modalities": { "input": ["text", "image", "video", "audio", "pdf"], "output": ["text"] },
|
||||
// "limit": { "context": 1048576, "output": 65536 }
|
||||
// },
|
||||
// "gemini-3-flash-preview": {
|
||||
// "name": "Gemini 3 Flash",
|
||||
// "reasoning": true,
|
||||
// "modalities": { "input": ["text", "image", "video", "audio", "pdf"], "output": ["text"] },
|
||||
// "limit": { "context": 1048576, "output": 65536 }
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
"google": {
|
||||
"npm": "@ai-sdk/google",
|
||||
"options": {
|
||||
"baseURL": "{env:AI_GATEWAY_BASE_URL}/v1beta",
|
||||
"apiKey": "{env:AI_GATEWAY_API_KEY}"
|
||||
},
|
||||
"models": {
|
||||
"gemini-3.1-pro-preview": {
|
||||
"name": "Gemini 3.1 Pro",
|
||||
"reasoning": true,
|
||||
"modalities": { "input": ["text", "image", "video", "audio", "pdf"], "output": ["text"] },
|
||||
"limit": { "context": 1048576, "output": 65536 }
|
||||
},
|
||||
"gemini-3-flash-preview": {
|
||||
"name": "Gemini 3 Flash",
|
||||
"reasoning": true,
|
||||
"modalities": { "input": ["text", "image", "video", "audio", "pdf"], "output": ["text"] },
|
||||
"limit": { "context": 1048576, "output": 65536 }
|
||||
}
|
||||
}
|
||||
},
|
||||
"ai-gateway": {
|
||||
"name": "AI Gateway",
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
|
||||
Reference in New Issue
Block a user