diff --git a/README.md b/README.md index 3a7356d..7692cfd 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,9 @@ export ANTHROPIC_API_KEY="your_anthropic_api_key_here" # For Qwen (DashScope, based in Singapore — delays may occur) export DASHSCOPE_API_KEY="your_dashscope_api_key_here" +# For MiniMax (204K context, OpenAI-compatible API) +export MINIMAX_API_KEY="your_minimax_api_key_here" + ``` @@ -216,14 +219,21 @@ elif provider == "qwen": analyzer.config["agent_llm_model"] = "qwen3-max" if not analyzer.config["graph_llm_model"].startswith("qwen"): analyzer.config["graph_llm_model"] = "qwen3-vl-plus" - + +elif provider == "minimax": + # Set default MiniMax models (204K context window) + if not analyzer.config["agent_llm_model"].startswith("MiniMax"): + analyzer.config["agent_llm_model"] = "MiniMax-M2.7" + if not analyzer.config["graph_llm_model"].startswith("MiniMax"): + analyzer.config["graph_llm_model"] = "MiniMax-M2.7" + else: # Set default OpenAI models if not already set to OpenAI models - if analyzer.config["agent_llm_model"].startswith(("claude", "qwen")): + if analyzer.config["agent_llm_model"].startswith(("claude", "qwen", "MiniMax")): analyzer.config["agent_llm_model"] = "gpt-4o-mini" - if analyzer.config["graph_llm_model"].startswith(("claude", "qwen")): + if analyzer.config["graph_llm_model"].startswith(("claude", "qwen", "MiniMax")): analyzer.config["graph_llm_model"] = "gpt-4o" - + ``` For live data, we recommend using the web interface as it provides access to real-time market data through yfinance. The system automatically fetches the most recent 30 candlesticks for optimal LLM analysis accuracy. @@ -272,6 +282,7 @@ This repository was built with the help of the following libraries and framework - [**OpenAI**](https://github.com/openai/openai-python) - [**Anthropic (Claude)**](https://github.com/anthropics/anthropic-sdk-python) - [**Qwen**](https://github.com/QwenLM/Qwen) +- [**MiniMax**](https://platform.minimaxi.com/) — 204K context, OpenAI-compatible API - [**yfinance**](https://github.com/ranaroussi/yfinance) - [**Flask**](https://github.com/pallets/flask) - [**TechnicalAnalysisAutomation**](https://github.com/neurotrader888/TechnicalAnalysisAutomation/tree/main) diff --git a/README_CN.md b/README_CN.md index 0e4f05c..7dd0c95 100644 --- a/README_CN.md +++ b/README_CN.md @@ -133,6 +133,9 @@ export ANTHROPIC_API_KEY="your_anthropic_api_key_here" # For Qwen (DashScope, based in Singapore — delays may occur) export DASHSCOPE_API_KEY="your_dashscope_api_key_here" +# For MiniMax (204K context, OpenAI-compatible API) +export MINIMAX_API_KEY="your_minimax_api_key_here" + ``` ## 🔧 实现细节 @@ -184,12 +187,19 @@ elif provider == "qwen": analyzer.config["agent_llm_model"] = "qwen3-max" if not analyzer.config["graph_llm_model"].startswith("qwen"): analyzer.config["graph_llm_model"] = "qwen3-vl-plus" - + +elif provider == "minimax": + # Set default MiniMax models (204K context window) + if not analyzer.config["agent_llm_model"].startswith("MiniMax"): + analyzer.config["agent_llm_model"] = "MiniMax-M2.7" + if not analyzer.config["graph_llm_model"].startswith("MiniMax"): + analyzer.config["graph_llm_model"] = "MiniMax-M2.7" + else: # Set default OpenAI models if not already set to OpenAI models - if analyzer.config["agent_llm_model"].startswith(("claude", "qwen")): + if analyzer.config["agent_llm_model"].startswith(("claude", "qwen", "MiniMax")): analyzer.config["agent_llm_model"] = "gpt-4o-mini" - if analyzer.config["graph_llm_model"].startswith(("claude", "qwen")): + if analyzer.config["graph_llm_model"].startswith(("claude", "qwen", "MiniMax")): analyzer.config["graph_llm_model"] = "gpt-4o" ``` @@ -263,6 +273,7 @@ python web_interface.py - [**OpenAI**](https://github.com/openai/openai-python) - [**Anthropic (Claude)**](https://github.com/anthropics/anthropic-sdk-python) - [**Qwen**](https://github.com/QwenLM/Qwen) +- [**MiniMax**](https://platform.minimaxi.com/) — 204K context, OpenAI-compatible API - [**yfinance**](https://github.com/ranaroussi/yfinance) - [**Flask**](https://github.com/pallets/flask) - [**TechnicalAnalysisAutomation**](https://github.com/neurotrader888/TechnicalAnalysisAutomation/tree/main) diff --git a/default_config.py b/default_config.py index daa584e..39a7de0 100644 --- a/default_config.py +++ b/default_config.py @@ -1,11 +1,12 @@ DEFAULT_CONFIG = { "agent_llm_model": "gpt-4o-mini", "graph_llm_model": "gpt-4o", - "agent_llm_provider": "openai", # "openai", "anthropic", or "qwen" - "graph_llm_provider": "openai", # "openai", "anthropic", or "qwen" + "agent_llm_provider": "openai", # "openai", "anthropic", "qwen", or "minimax" + "graph_llm_provider": "openai", # "openai", "anthropic", "qwen", or "minimax" "agent_llm_temperature": 0.1, "graph_llm_temperature": 0.1, "api_key": "sk-", # OpenAI API key "anthropic_api_key": "sk-", # Anthropic API key (optional, can also use ANTHROPIC_API_KEY env var) "qwen_api_key": "sk-", # Qwen API key (optional, can also use DASHSCOPE_API_KEY env var) + "minimax_api_key": "", # MiniMax API key (optional, can also use MINIMAX_API_KEY env var) } diff --git a/templates/demo_new.html b/templates/demo_new.html index e349e14..343c529 100644 --- a/templates/demo_new.html +++ b/templates/demo_new.html @@ -1091,6 +1091,7 @@

+ @@ -1126,6 +1127,17 @@

+ + +