Update tradingagents/llm_clients/copilot_client.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Michael Liu 2026-03-23 14:52:40 +00:00 committed by GitHub
parent e0b7fed7f4
commit ee1c3a69ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 []