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:
parent
e0b7fed7f4
commit
ee1c3a69ee
|
|
@ -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 []
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue