From 050a9dd9977726b649c18fe6459fae4ec0b3d2e0 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Mon, 23 Jun 2025 10:11:53 -0400 Subject: [PATCH] Add claude code as a provider that doesn't need configuration --- src/shared/checkExistApiConfig.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/checkExistApiConfig.ts b/src/shared/checkExistApiConfig.ts index 4093e8541d..eca2dd4fe0 100644 --- a/src/shared/checkExistApiConfig.ts +++ b/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 }