chore: 启用 Google provider 并切换 Gemini 至 google 前缀

This commit is contained in:
2026-04-22 12:57:34 +08:00
parent 0c812192ec
commit 561a3961c1
3 changed files with 25 additions and 25 deletions
+21 -21
View File
@@ -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",