mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 04:00:36 +00:00
feat(oauth): add Qwen OAuth integration
This commit is contained in:
parent
ffc2d27ca3
commit
ea7dcf8347
37 changed files with 7795 additions and 169 deletions
|
|
@ -21,6 +21,9 @@ function getAuthTypeFromEnv(): AuthType | undefined {
|
|||
if (process.env.OPENAI_API_KEY) {
|
||||
return AuthType.USE_OPENAI;
|
||||
}
|
||||
if (process.env.QWEN_OAUTH_TOKEN) {
|
||||
return AuthType.QWEN_OAUTH;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue