fix: update MiniMax API endpoint from api.minimax.chat to api.minimax.io

The MiniMax API endpoint should be api.minimax.io, not api.minimax.chat.

See: https://platform.minimax.io/docs/api-reference/text-anthropic-api

Fixes #43
This commit is contained in:
shokollm
2026-04-10 02:59:24 +00:00
parent a6e4d28aa7
commit 4cc0d982d6

View File

@@ -8,7 +8,7 @@ class MiniMaxLLM(LLM):
super().__init__(**kwargs) super().__init__(**kwargs)
self.api_key = api_key self.api_key = api_key
self.model = model self.model = model
self.base_url = "https://api.minimax.chat/v1" self.base_url = "https://api.minimax.io/v1"
def _call(self, messages: List[Dict[str, str]], **kwargs) -> str: def _call(self, messages: List[Dict[str, str]], **kwargs) -> str:
headers = { headers = {