Added Github Copilot Provider

This commit is contained in:
Darye
2026-02-16 15:02:12 +01:00
parent 1207b89adb
commit 5033ac1759
3 changed files with 21 additions and 1 deletions

View File

@@ -292,7 +292,7 @@ def _make_provider(config: Config):
if provider_name == "openai_codex" or model.startswith("openai-codex/"):
return OpenAICodexProvider(default_model=model)
if not model.startswith("bedrock/") and not (p and p.api_key):
if not model.startswith("bedrock/") and not (p and p.api_key) and provider_name != "github_copilot":
console.print("[red]Error: No API key configured.[/red]")
console.print("Set one in ~/.nanobot/config.json under providers section")
raise typer.Exit(1)