fix: update MiniMax API endpoint and default model
Changes: 1. Updated API endpoint from api.minimax.chat to api.minimax.io 2. Changed default model from MiniMax-Text-01 to MiniMax-M2.7 (MiniMax-Text-01 is not available for all API key plans) 3. Updated .env.example with correct default model MiniMax API docs: https://platform.minimax.io/docs/api-reference/text-anthropic-api Fixes #43
This commit is contained in:
@@ -4,11 +4,11 @@ from crewai import LLM
|
||||
|
||||
|
||||
class MiniMaxLLM(LLM):
|
||||
def __init__(self, api_key: str, model: str = "MiniMax-Text-01", **kwargs):
|
||||
def __init__(self, api_key: str, model: str = "MiniMax-M2.7", **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
self.api_key = api_key
|
||||
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:
|
||||
headers = {
|
||||
|
||||
Reference in New Issue
Block a user