fix: update MiniMax API endpoint to api.minimax.io #44

Merged
shoko merged 1 commits from fix/minimax-api-endpoint into main 2026-04-10 05:10:17 +02:00
3 changed files with 7 additions and 7 deletions
Showing only changes of commit bef4479675 - Show all commits

View File

@@ -32,7 +32,7 @@ MINIMAX_API_KEY=your-minimax-api-key
# MiniMax model to use
# Common options: MiniMax-Text-01, MiniMax-M2.1
MINIMAX_MODEL=MiniMax-Text-01
MINIMAX_MODEL=MiniMax-M2.7
# =============================================================================
# AVE CLOUD API

View File

@@ -120,7 +120,7 @@ class StrategyExplainer:
def create_trading_designer_agent(
api_key: str, model: str = "MiniMax-Text-01"
api_key: str, model: str = "MiniMax-M2.7"
) -> Agent:
connector = MiniMaxConnector(api_key=api_key, model=model)
@@ -147,7 +147,7 @@ def create_trading_designer_agent(
def create_strategy_validator_agent(
api_key: str, model: str = "MiniMax-Text-01"
api_key: str, model: str = "MiniMax-M2.7"
) -> Agent:
return Agent(
role="Strategy Validator",
@@ -161,7 +161,7 @@ def create_strategy_validator_agent(
def create_strategy_explainer_agent(
api_key: str, model: str = "MiniMax-Text-01"
api_key: str, model: str = "MiniMax-M2.7"
) -> Agent:
return Agent(
role="Strategy Explainer",
@@ -175,7 +175,7 @@ def create_strategy_explainer_agent(
class TradingCrew:
def __init__(self, api_key: str, model: str = "MiniMax-Text-01"):
def __init__(self, api_key: str, model: str = "MiniMax-M2.7"):
self.api_key = api_key
self.model = model
self.validator = StrategyValidator()

View File

@@ -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 = {