Address review feedback: use effort params, fix model names, add safety checks
This commit is contained in:
committed by
Colin McDonnell
parent
89e93d3398
commit
c6572f0987
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user