codev / src /utils /swarm /teammateModel.ts
chenbhao's picture
fix: /login provider change
8083f17
Raw
History Blame Contribute Delete
567 Bytes
import { CLAUDE_OPUS_4_6_CONFIG } from '../model/configs.js'
import { getAPIProvider } from '../model/providers.js'
// @[MODEL LAUNCH]: Update the fallback model below.
// When the user has never set teammateDefaultModel in /config, new teammates
// use Opus 4.6. Must be provider-aware so Bedrock/Vertex/Foundry customers get
// the correct model ID.
export function getHardcodedTeammateModelFallback(): string {
const provider = getAPIProvider()
// Default to firstParty if no provider is configured
return CLAUDE_OPUS_4_6_CONFIG[provider ?? 'firstParty']
}