feat(app-controller): modularize handlers and enforce 1-space indentation

This commit is contained in:
2026-05-13 21:26:29 -04:00
parent 34b1349c4f
commit fa4388bbe0
5 changed files with 1041 additions and 842 deletions
-5
View File
@@ -523,11 +523,6 @@ def list_models(provider: str) -> list[str]:
"""
[C: src/app_controller.py:AppController.do_fetch, tests/test_agent_capabilities.py:test_agent_capabilities_listing, tests/test_ai_client_list_models.py:test_list_models_gemini_cli, tests/test_deepseek_infra.py:test_deepseek_model_listing, tests/test_minimax_provider.py:test_minimax_list_models]
"""
proxy = _get_proxy()
if proxy and proxy.status == "ready":
result = proxy.send_command("list_models", {"provider": provider})
if "result" in result:
return result["result"].get("models", [])
creds = _load_credentials()
if provider == "gemini":
return _list_gemini_models(creds["gemini"]["api_key"])