统一User-Agent管理:从config.json读取固定值factory-cli/0.19.3

This commit is contained in:
1e0n
2025-10-08 18:30:21 +08:00
parent c677d7b429
commit 2dc8c89270
5 changed files with 12 additions and 6 deletions

View File

@@ -61,3 +61,8 @@ export function getModelReasoning(modelId) {
}
return null;
}
export function getUserAgent() {
const cfg = getConfig();
return cfg.user_agent || 'factory-cli/0.19.3';
}