From b0754b3e3980ee7dee81d56297ab4ecf1356e14d Mon Sep 17 00:00:00 2001 From: Michael Liu <34015028+ljxw88@users.noreply.github.com> Date: Mon, 23 Mar 2026 15:37:36 +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 845b9f4b..3d2eb0c5 100644 --- a/tradingagents/llm_clients/copilot_client.py +++ b/tradingagents/llm_clients/copilot_client.py @@ -111,7 +111,7 @@ def check_copilot_auth() -> bool: ) return resp.status_code == 200 except requests.exceptions.RequestException: - return True # Network error — accept optimistically + return False # Network error should be treated as an auth failure class NormalizedChatOpenAI(ChatOpenAI):