mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
parent
5b93bc7dc3
commit
92a1be40df
1 changed files with 6 additions and 0 deletions
|
|
@ -69,6 +69,12 @@ export class QwenCodeHandler extends BaseProvider implements SingleCompletionHan
|
|||
this.client = new OpenAI({
|
||||
apiKey: "dummy-key-will-be-replaced",
|
||||
baseURL: "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
||||
defaultHeaders: {
|
||||
"User-Agent": `QwenCode/1.0.0 (${os.platform()}; ${os.arch()})`,
|
||||
"X-DashScope-CacheControl": "enable",
|
||||
"X-DashScope-UserAgent": `QwenCode/1.0.0 (${os.platform()}; ${os.arch()})`,
|
||||
"X-DashScope-AuthType": "qwen-oauth",
|
||||
},
|
||||
})
|
||||
}
|
||||
return this.client
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue