fix: rename QWEN_API_KEY to DASHSCOPE_API_KEY for accuracy
This commit is contained in:
@@ -27,7 +27,7 @@ export const config = {
|
||||
|
||||
// LLM API配置
|
||||
deepseekApiKey: process.env.DEEPSEEK_API_KEY || '',
|
||||
qwenApiKey: process.env.QWEN_API_KEY || '',
|
||||
dashscopeApiKey: process.env.DASHSCOPE_API_KEY || '', // 用于Qwen模型
|
||||
geminiApiKey: process.env.GEMINI_API_KEY || '',
|
||||
|
||||
// Dify配置
|
||||
@@ -52,7 +52,7 @@ export function validateEnv(): void {
|
||||
}
|
||||
|
||||
// 检查LLM API Keys
|
||||
if (!config.deepseekApiKey && !config.qwenApiKey) {
|
||||
console.warn('Warning: No LLM API keys configured. At least one of DEEPSEEK_API_KEY or QWEN_API_KEY should be set.');
|
||||
if (!config.deepseekApiKey && !config.dashscopeApiKey) {
|
||||
console.warn('Warning: No LLM API keys configured. At least one of DEEPSEEK_API_KEY or DASHSCOPE_API_KEY should be set.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user