removed the duplicate _resolve_model_options definition from utils.py (line 137), leaving the original helper in place and keeping all callers unchanged

This commit is contained in:
Jiaxu Liu 2026-03-23 15:20:15 +00:00
parent d38d5e2ecb
commit 7064884b4f
1 changed files with 0 additions and 23 deletions

View File

@ -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.