From 7064884b4f1ed3959fe854b52aaad46e61109798 Mon Sep 17 00:00:00 2001 From: Jiaxu Liu Date: Mon, 23 Mar 2026 15:20:15 +0000 Subject: [PATCH] removed the duplicate _resolve_model_options definition from utils.py (line 137), leaving the original helper in place and keeping all callers unchanged --- cli/utils.py | 23 ----------------------- 1 file changed, 23 deletions(-) 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.