File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1+ bun install
2+ bun run dev -- dangerously- skip-permissions
Original file line number Diff line number Diff line change @@ -112,14 +112,13 @@ export function isAnthropicAuthEnabled(): boolean {
112112 return ! ! process . env . CLAUDE_CODE_OAUTH_TOKEN
113113 }
114114
115+ const settings = getSettings_DEPRECATED ( ) || { }
115116 const is3P =
116117 isEnvTruthy ( process . env . CLAUDE_CODE_USE_BEDROCK ) ||
117118 isEnvTruthy ( process . env . CLAUDE_CODE_USE_VERTEX ) ||
118- isEnvTruthy ( process . env . CLAUDE_CODE_USE_FOUNDRY )
119-
120- // Check if user has configured an external API key source
121- // This allows externally-provided API keys to work (without requiring proxy configuration)
122- const settings = getSettings_DEPRECATED ( ) || { }
119+ isEnvTruthy ( process . env . CLAUDE_CODE_USE_FOUNDRY ) ||
120+ ( settings as any ) . modelType === 'openai' ||
121+ ! ! process . env . OPENAI_BASE_URL
123122 const apiKeyHelper = settings . apiKeyHelper
124123 const hasExternalAuthToken =
125124 process . env . ANTHROPIC_AUTH_TOKEN ||
You can’t perform that action at this time.
0 commit comments