MCPcopy Create free account
hub / github.com/echoVic/blade-code / setCurrentModel

Function setCurrentModel

src/config/user-config.ts:94–100  ·  view source on GitHub ↗
(provider: 'qwen' | 'volcengine', model: string)

Source from the content-addressed store, hash-verified

92 * 设置当前模型
93 */
94export function setCurrentModel(provider: 'qwen' | 'volcengine', model: string): void {
95 saveUserConfig({
96 currentProvider: provider,
97 currentModel: model,
98 });
99 console.log(chalk.green(`✅ 已设置当前模型为: ${model} (${provider})`));
100}
101
102/**
103 * 获取当前 provider(优先级:用户配置 > 默认值)

Callers 1

configCommandFunction · 0.85

Calls 2

saveUserConfigFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected