Browse Source

Add claude code as a provider that doesn't need configuration (#5038)

Matt Rubens 6 months ago
parent
commit
6fd0b75bc8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/shared/checkExistApiConfig.ts

+ 2 - 2
src/shared/checkExistApiConfig.ts

@@ -5,8 +5,8 @@ export function checkExistKey(config: ProviderSettings | undefined) {
 		return false
 	}
 
-	// Special case for human-relay and fake-ai providers which don't need any configuration.
-	if (config.apiProvider === "human-relay" || config.apiProvider === "fake-ai") {
+	// Special case for human-relay, fake-ai, and claude-code providers which don't need any configuration.
+	if (config.apiProvider && ["human-relay", "fake-ai", "claude-code"].includes(config.apiProvider)) {
 		return true
 	}