Skip to content

Commit 3f2f724

Browse files
committed
feat: add qwen-code to providers that don't require initial configuration
- Added qwen-code to the list of providers in checkExistKey that can proceed without API keys - This allows qwen-code to use its default OAuth path (~/.qwen/oauth_creds.json) without blocking the Welcome View - Treats qwen-code similar to claude-code and other local authentication providers
1 parent c33ff7a commit 3f2f724

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/shared/checkExistApiConfig.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ export function checkExistKey(config: ProviderSettings | undefined) {
55
return false
66
}
77

8-
// Special case for human-relay, fake-ai, claude-code, and roo providers which don't need any configuration.
9-
if (config.apiProvider && ["human-relay", "fake-ai", "claude-code", "roo"].includes(config.apiProvider)) {
8+
// Special case for human-relay, fake-ai, claude-code, qwen-code, and roo providers which don't need any configuration.
9+
if (
10+
config.apiProvider &&
11+
["human-relay", "fake-ai", "claude-code", "qwen-code", "roo"].includes(config.apiProvider)
12+
) {
1013
return true
1114
}
1215

0 commit comments

Comments
 (0)