Compare commits

..

1 Commits

Author SHA1 Message Date
shokollm
4cc0d982d6 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
2026-04-10 02:59:24 +00:00
3 changed files with 6 additions and 6 deletions

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-M2.7
MINIMAX_MODEL=MiniMax-Text-01
# =============================================================================
# AVE CLOUD API

View File

@@ -120,7 +120,7 @@ class StrategyExplainer:
def create_trading_designer_agent(
api_key: str, model: str = "MiniMax-M2.7"
api_key: str, model: str = "MiniMax-Text-01"
) -> 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-M2.7"
api_key: str, model: str = "MiniMax-Text-01"
) -> 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-M2.7"
api_key: str, model: str = "MiniMax-Text-01"
) -> 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-M2.7"):
def __init__(self, api_key: str, model: str = "MiniMax-Text-01"):
self.api_key = api_key
self.model = model
self.validator = StrategyValidator()

View File

@@ -4,7 +4,7 @@ from crewai import LLM
class MiniMaxLLM(LLM):
def __init__(self, api_key: str, model: str = "MiniMax-M2.7", **kwargs):
def __init__(self, api_key: str, model: str = "MiniMax-Text-01", **kwargs):
super().__init__(**kwargs)
self.api_key = api_key
self.model = model