mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 13:55:50 +00:00
provider指令切换模型类型
This commit is contained in:
@@ -8,6 +8,9 @@ export function getAPIProvider(): APIProvider {
|
||||
// 1. Check settings.json modelType field (highest priority)
|
||||
const modelType = getInitialSettings().modelType
|
||||
if (modelType === 'openai') return 'openai'
|
||||
if (modelType === 'bedrock') return 'bedrock'
|
||||
if (modelType === 'vertex') return 'vertex'
|
||||
if (modelType === 'foundry') return 'foundry'
|
||||
|
||||
// 2. Check environment variables (backward compatibility)
|
||||
return isEnvTruthy(process.env.CLAUDE_CODE_USE_OPENAI)
|
||||
|
||||
Reference in New Issue
Block a user