fix: use MiniMax text/chatcompletion_v2 endpoint instead of chat/completions

The /v1/chat/completions endpoint returns 529 (overloaded) while
/v1/text/chatcompletion_v2 works reliably.
This commit is contained in:
shokollm
2026-04-10 03:42:20 +00:00
parent d1408b74b4
commit a55ed9cc04

View File

@@ -21,7 +21,7 @@ class MiniMaxLLM:
}
with httpx.Client(timeout=60.0) as client:
response = client.post(
f"{self.base_url}/chat/completions",
f"{self.base_url}/text/chatcompletion_v2",
headers=headers,
json=payload,
)