Skip to content

Commit 086a3e8

Browse files
dmikushinclaude
andcommitted
fix: add free-code to provider validator to suppress 'Unknown provider' warning
helpers.py validation map lacked the free-code entry, causing a spurious warning before every run. free-code requires no env vars (proxy to claude serve), so its entry has an empty list — missing_vars stays empty, no warning emitted. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 03a5d6d commit 086a3e8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/cli/src/repowise/cli/helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,14 @@ def _is_env_var_exists(var_name: str) -> bool:
316316
return var_name in os.environ
317317

318318
# Define required environment variables for each provider
319+
# Providers with an empty list need no env vars (they work out of the box)
319320
provider_env_vars = {
320321
"anthropic": ["ANTHROPIC_API_KEY"],
321322
"openai": ["OPENAI_API_KEY"],
322323
"gemini": ["GEMINI_API_KEY", "GOOGLE_API_KEY"], # Either one
323324
"ollama": ["OLLAMA_BASE_URL"],
324325
"litellm": ["LITELLM_API_KEY"], # May need others depending on backend
326+
"free-code": [], # No key needed — uses claude serve proxy
325327
}
326328

327329
if provider_name:

0 commit comments

Comments
 (0)