Skip to content

Commit a48955f

Browse files
authored
chore: add support for base_url for ai bridge (#79)
1 parent cad0478 commit a48955f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/blink/src/edit/agent.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,13 +659,15 @@ export function getEditModeModel(
659659
if (env.ANTHROPIC_API_KEY) {
660660
return createAnthropic({
661661
apiKey: env.ANTHROPIC_API_KEY,
662+
baseURL: env.ANTHROPIC_BASE_URL,
662663
}).chat("claude-sonnet-4-5");
663664
}
664665

665666
// Priority 2: Use OpenAI if API key is set
666667
if (env.OPENAI_API_KEY) {
667668
return createOpenAI({
668669
apiKey: env.OPENAI_API_KEY,
670+
baseURL: env.OPENAI_BASE_URL,
669671
// avoid the responses API due to https://github.com/coder/blink/issues/34#issuecomment-3426704264
670672
}).chat("gpt-5");
671673
}

0 commit comments

Comments
 (0)