From fbcc1db495ef73dc13ebae373c86d3c32fd2ce64 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sat, 13 Jun 2026 17:47:40 -0400 Subject: [PATCH] Fix: NameError when instantiating MiniMax client Resolve name error where OpenAI was not defined in the scope of _ensure_minimax_client by calling openai.OpenAI directly. --- src/ai_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ai_client.py b/src/ai_client.py index e8a4b844..cd9d0a24 100644 --- a/src/ai_client.py +++ b/src/ai_client.py @@ -2133,7 +2133,7 @@ def _ensure_minimax_client() -> None: api_key = creds.get("minimax", {}).get("api_key") if not api_key: raise ValueError("MiniMax API key not found in credentials.toml") - _minimax_client = OpenAI(api_key=api_key, base_url="https://api.minimax.chat/v1") + _minimax_client = openai.OpenAI(api_key=api_key, base_url="https://api.minimax.chat/v1") def _ensure_grok_client() -> Any: global _grok_client