diff --git a/tradingagents/llm_clients/factory.py b/tradingagents/llm_clients/factory.py index a9a7e83d..eef4c2b2 100644 --- a/tradingagents/llm_clients/factory.py +++ b/tradingagents/llm_clients/factory.py @@ -9,6 +9,7 @@ from .azure_client import AzureOpenAIClient # Providers that use the OpenAI-compatible chat completions API _OPENAI_COMPATIBLE = ( "openai", "xai", "deepseek", "qwen", "glm", "ollama", "openrouter", + "minimax", ) diff --git a/tradingagents/llm_clients/openai_client.py b/tradingagents/llm_clients/openai_client.py index f943124a..53dc1aef 100644 --- a/tradingagents/llm_clients/openai_client.py +++ b/tradingagents/llm_clients/openai_client.py @@ -32,6 +32,7 @@ _PROVIDER_CONFIG = { "glm": ("https://api.z.ai/api/paas/v4/", "ZHIPU_API_KEY"), "openrouter": ("https://openrouter.ai/api/v1", "OPENROUTER_API_KEY"), "ollama": ("http://localhost:11434/v1", None), + "minimax": ("https://api.minimaxi.com/v1", "MINIMAX_CN_API_KEY"), }