fix: rename QWEN_API_KEY to DASHSCOPE_API_KEY for accuracy
This commit is contained in:
@@ -9,11 +9,11 @@ export class QwenAdapter implements ILLMAdapter {
|
||||
|
||||
constructor(modelName: string = 'qwen-turbo') {
|
||||
this.modelName = modelName;
|
||||
this.apiKey = config.qwenApiKey || '';
|
||||
this.apiKey = config.dashscopeApiKey || '';
|
||||
this.baseURL = 'https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation';
|
||||
|
||||
if (!this.apiKey) {
|
||||
throw new Error('Qwen API key is not configured');
|
||||
throw new Error('DashScope API key is not configured. Please set DASHSCOPE_API_KEY in .env file.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user