diff --git a/cli/utils.py b/cli/utils.py index 7607c25e..56c7aa6a 100644 --- a/cli/utils.py +++ b/cli/utils.py @@ -291,29 +291,6 @@ def select_deep_thinking_agent(provider) -> str: return choice -def _resolve_model_options( - provider: str, static_options: dict -) -> list[tuple[str, str]]: - """Return the model list for the given provider. - - For Copilot, fetches live from the inference API. - For all others, looks up the static options dict. - Exits with an error message if no models are available. - """ - if provider.lower() == "copilot": - options = fetch_copilot_models() - if not options: - console.print("[red]No Copilot models available. Exiting...[/red]") - exit(1) - return options - - options = static_options.get(provider.lower()) - if not options: - console.print(f"[red]No models available for provider '{provider}'. Exiting...[/red]") - exit(1) - return options - - def fetch_copilot_models() -> list[tuple[str, str]]: """Fetch models from the GitHub Copilot inference API.