From ee1c3a69eeb83aa78611a197122c823aacfd0fa7 Mon Sep 17 00:00:00 2001 From: Michael Liu <34015028+ljxw88@users.noreply.github.com> Date: Mon, 23 Mar 2026 14:52:40 +0000 Subject: [PATCH] Update tradingagents/llm_clients/copilot_client.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- tradingagents/llm_clients/copilot_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tradingagents/llm_clients/copilot_client.py b/tradingagents/llm_clients/copilot_client.py index 66bfba25..541cfee5 100644 --- a/tradingagents/llm_clients/copilot_client.py +++ b/tradingagents/llm_clients/copilot_client.py @@ -93,7 +93,7 @@ def list_copilot_models() -> list[tuple[str, str]]: models = data.get("data", data) if isinstance(data, dict) else data chat_models = [m for m in models if not m.get("id", "").startswith("text-embedding")] return [(m["id"], m["id"]) for m in sorted(chat_models, key=lambda x: x.get("id", ""))] - except Exception: + except requests.exceptions.RequestException: return []