Skip to content

Commit a61e5f3

Browse files
committed
comment fix
1 parent 9954515 commit a61e5f3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

frontend/packages/agent/src/agent.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,11 @@ export async function getOrCreateAgent(config: AgentRunnerConfig): Promise<{
274274
return providerConfig.key;
275275
}
276276
}
277+
// System models: always use env var, never fall through to BYOK keys
278+
if (config.source !== "byok") {
279+
const envKey = getEnvApiKey(provider);
280+
if (envKey) return envKey;
281+
}
277282
return fetchProviderKey(config.workspaceId, provider);
278283
},
279284
});

frontend/packages/core/src/llm-providers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const ADAPTER_TO_PI_AI: Record<string, string> = {
2525
export const ADAPTER_DEFAULT_BASE_URL: Record<string, string> = {
2626
openai: "https://api.openai.com/v1",
2727
anthropic: "https://api.anthropic.com",
28-
google: "https://generativelanguage.googleapis.com",
28+
google: "https://generativelanguage.googleapis.com/v1alpha",
2929
deepseek: "https://api.deepseek.com/v1",
3030
openrouter: "https://openrouter.ai/api/v1",
3131
};

0 commit comments

Comments
 (0)