Address review feedback: use effort params, fix model names, add safety checks

This commit is contained in:
pullfrog
2026-01-12 20:51:13 +00:00
committed by Colin McDonnell
parent 89e93d3398
commit c6572f0987
6 changed files with 1291 additions and 1315 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ export const opencode = agent({
// add API keys from apiKeys object
for (const [key, value] of Object.entries(apiKeys || {})) {
env[key] = value;
env[key.toUpperCase()] = value;
// also set GOOGLE_GENERATIVE_AI_API_KEY for Google provider compatibility
if (key === "GEMINI_API_KEY") {
env.GOOGLE_GENERATIVE_AI_API_KEY = value;