We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b93bc7 commit 92a1be4Copy full SHA for 92a1be4
1 file changed
src/api/providers/qwen-code.ts
@@ -69,6 +69,12 @@ export class QwenCodeHandler extends BaseProvider implements SingleCompletionHan
69
this.client = new OpenAI({
70
apiKey: "dummy-key-will-be-replaced",
71
baseURL: "https://dashscope.aliyuncs.com/compatible-mode/v1",
72
+ defaultHeaders: {
73
+ "User-Agent": `QwenCode/1.0.0 (${os.platform()}; ${os.arch()})`,
74
+ "X-DashScope-CacheControl": "enable",
75
+ "X-DashScope-UserAgent": `QwenCode/1.0.0 (${os.platform()}; ${os.arch()})`,
76
+ "X-DashScope-AuthType": "qwen-oauth",
77
+ },
78
})
79
}
80
return this.client
0 commit comments