Skip to content

Commit 050a9dd

Browse files
committed
Add claude code as a provider that doesn't need configuration
1 parent abaa3d8 commit 050a9dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shared/checkExistApiConfig.ts

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

8-
// Special case for human-relay and fake-ai providers which don't need any configuration.
9-
if (config.apiProvider === "human-relay" || config.apiProvider === "fake-ai") {
8+
// Special case for human-relay, fake-ai, and claude-code providers which don't need any configuration.
9+
if (config.apiProvider && ["human-relay", "fake-ai", "claude-code"].includes(config.apiProvider)) {
1010
return true
1111
}
1212

0 commit comments

Comments
 (0)