Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ GEMINI_API_KEY=
# Anthropic Claude(https://console.anthropic.com)
# ANTHROPIC_API_KEY=

# MiniMax 海螺 AI(https://platform.minimaxi.com,兼容 OpenAI 格式,204K 上下文)
# OPENAI_API_KEY=your_minimax_key
# OPENAI_BASE_URL=https://api.minimax.io/v1
# LITELLM_MODEL=openai/MiniMax-M2.7

# OpenAI / 兼容 API
# OPENAI_API_KEY=
# OPENAI_BASE_URL= # 第三方 API 地址(中转站/代理),留空用官方
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

| 类型 | 支持 |
|------|------|
| AI 模型 | [AIHubMix](https://aihubmix.com/?aff=CfMq)、Gemini、OpenAI 兼容、DeepSeek、通义千问、Claude 等(统一通过 [LiteLLM](https://github.com/BerriAI/litellm) 调用,支持多 Key 负载均衡)|
| AI 模型 | [AIHubMix](https://aihubmix.com/?aff=CfMq)、Gemini、OpenAI 兼容、DeepSeek、通义千问、Claude、[MiniMax](https://platform.minimaxi.com/) 等(统一通过 [LiteLLM](https://github.com/BerriAI/litellm) 调用,支持多 Key 负载均衡)|
| 行情数据 | AkShare、Tushare、Pytdx、Baostock、YFinance |
| 新闻搜索 | Tavily、SerpAPI、Bocha、Brave、MiniMax |

Expand Down
6 changes: 6 additions & 0 deletions apps/dsa-web/src/components/settings/LLMChannelEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ const CHANNEL_PRESETS: Record<string, ChannelPreset> = {
baseUrl: 'https://api.moonshot.cn/v1',
placeholder: 'moonshot-v1-8k',
},
minimax: {
label: 'MiniMax(海螺 AI)',
protocol: 'openai',
baseUrl: 'https://api.minimax.io/v1',
placeholder: 'MiniMax-M2.7,MiniMax-M2.7-highspeed,MiniMax-M2.5',
},
siliconflow: {
label: '硅基流动(SiliconFlow)',
protocol: 'openai',
Expand Down
12 changes: 10 additions & 2 deletions docs/LLM_CONFIG_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,22 @@ OPENAI_BASE_URL=https://api.siliconflow.cn/v1
LITELLM_MODEL=openai/deepseek-ai/DeepSeek-V3
```

### 示例 2:使用 DeepSeek 官方接口
### 示例 2:使用 MiniMax 海螺 AI(兼容 OpenAI 格式,204K 超长上下文)
```env
OPENAI_API_KEY=your_minimax_api_key
OPENAI_BASE_URL=https://api.minimax.io/v1
LITELLM_MODEL=openai/MiniMax-M2.7
```
*提示:MiniMax 的 API 兼容 OpenAI 格式,按上方填写即可。MiniMax-M2.7 是最新旗舰模型,推理和编码能力显著增强。也可使用 `MiniMax-M2.7-highspeed` 以获得更低延迟。*

### 示例 3:使用 DeepSeek 官方接口
```env
# 填入你在 DeepSeek 官方平台申请的 API Key
DEEPSEEK_API_KEY=sk-xxxxxxxxxxxxxxxx
```
*提示:仅需这一行,系统会自动识别并默认使用 DeepSeek 模型。*

### 示例 3:使用 Gemini 免费 API
### 示例 4:使用 Gemini 免费 API
```env
# 填入你获取的 Google Gemini Key
GEMINI_API_KEY=AIzac...
Expand Down
2 changes: 1 addition & 1 deletion docs/README_CHT.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

| 類型 | 支援 |
|------|------|
| AI 模型 | Gemini(免費)、OpenAI 兼容、DeepSeek、通義千問、Claude、Ollama |
| AI 模型 | Gemini(免費)、OpenAI 兼容、DeepSeek、通義千問、Claude、[MiniMax](https://platform.minimaxi.com/)、Ollama |
| 行情數據 | AkShare、Tushare、Pytdx、Baostock、YFinance |
| 新聞搜索 | Tavily、SerpAPI、Bocha、Brave、MiniMax |

Expand Down
2 changes: 1 addition & 1 deletion docs/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ English | [简体中文](../README.md) | [繁體中文](README_CHT.md)

| Type | Supported |
|------|----------|
| LLMs | Gemini (free), OpenAI-compatible, DeepSeek, Qwen, Claude, Ollama |
| LLMs | Gemini (free), OpenAI-compatible, DeepSeek, Qwen, Claude, [MiniMax](https://platform.minimaxi.com/), Ollama |
| Market Data | AkShare, Tushare, Pytdx, Baostock, YFinance |
| News Search | Tavily, SerpAPI, Bocha, Brave, MiniMax |

Expand Down
19 changes: 19 additions & 0 deletions litellm_config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,25 @@ model_list:
model: gemini/gemini-2.5-flash
api_key: "os.environ/GEMINI_API_KEY_2"

# --- MiniMax (OpenAI 兼容,204K 上下文) ---
- model_name: openai/MiniMax-M2.7
litellm_params:
model: openai/MiniMax-M2.7
api_key: "os.environ/MINIMAX_LLM_API_KEY"
api_base: https://api.minimax.io/v1

- model_name: openai/MiniMax-M2.7-highspeed
litellm_params:
model: openai/MiniMax-M2.7-highspeed
api_key: "os.environ/MINIMAX_LLM_API_KEY"
api_base: https://api.minimax.io/v1

- model_name: openai/MiniMax-M2.5
litellm_params:
model: openai/MiniMax-M2.5
api_key: "os.environ/MINIMAX_LLM_API_KEY"
api_base: https://api.minimax.io/v1

# --- Anthropic Claude (原生) ---
# - model_name: anthropic/claude-3-5-sonnet-20241022
# litellm_params:
Expand Down
Loading