mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
feat: switch default model to deepseek-v4-flash
This commit is contained in:
78
README.md
78
README.md
@@ -29,7 +29,7 @@
|
|||||||
- ✅ **工具系统:** 内置文件读写、终端执行、浏览器操作、定时任务等工具,Agent 自主调用以完成复杂任务
|
- ✅ **工具系统:** 内置文件读写、终端执行、浏览器操作、定时任务等工具,Agent 自主调用以完成复杂任务
|
||||||
- ✅ **CLI系统:** 提供终端命令和对话命令,支持进程管理、技能安装、配置修改等操作
|
- ✅ **CLI系统:** 提供终端命令和对话命令,支持进程管理、技能安装、配置修改等操作
|
||||||
- ✅ **多模态消息:** 支持对文本、图片、语音、文件等多类型消息进行解析、处理、生成、发送等操作
|
- ✅ **多模态消息:** 支持对文本、图片、语音、文件等多类型消息进行解析、处理、生成、发送等操作
|
||||||
- ✅ **多模型支持:** 支持 MiniMax、DeepSeek、Claude、Gemini、OpenAI、GLM、Qwen、Doubao、Kimi 等国内外主流模型厂商
|
- ✅ **多模型支持:** 支持 DeepSeek、MiniMax、Claude、Gemini、OpenAI、GLM、Qwen、Doubao、Kimi 等国内外主流模型厂商
|
||||||
- ✅ **多通道接入:** 支持运行在本地计算机或服务器,可集成到微信、飞书、钉钉、企业微信、QQ、微信公众号、网页中使用
|
- ✅ **多通道接入:** 支持运行在本地计算机或服务器,可集成到微信、飞书、钉钉、企业微信、QQ、微信公众号、网页中使用
|
||||||
|
|
||||||
## 声明
|
## 声明
|
||||||
@@ -115,7 +115,7 @@ irm https://cdn.link-ai.tech/code/cow/run.ps1 | iex
|
|||||||
|
|
||||||
项目支持国内外主流厂商的模型接口,可选模型及配置说明参考:[模型说明](#模型说明)。
|
项目支持国内外主流厂商的模型接口,可选模型及配置说明参考:[模型说明](#模型说明)。
|
||||||
|
|
||||||
> 注:Agent 模式下推荐使用以下模型,可根据效果及成本综合选择:MiniMax-M2.7、glm-5.1、kimi-k2.6、qwen3.5-plus、claude-sonnet-4-6、gemini-3.1-pro-preview、gpt-5.4、gpt-5.4-mini
|
> 注:Agent 模式下推荐使用以下模型,可根据效果及成本综合选择:deepseek-v4-flash、MiniMax-M2.7、glm-5.1、kimi-k2.6、qwen3.5-plus、claude-sonnet-4-6、gemini-3.1-pro-preview、gpt-5.4、gpt-5.4-mini
|
||||||
|
|
||||||
同时支持使用 **LinkAI 平台** 接口,支持上述全部模型,并支持知识库、工作流、插件等 Agent 技能,参考 [接口文档](https://docs.link-ai.tech/platform/api)。
|
同时支持使用 **LinkAI 平台** 接口,支持上述全部模型,并支持知识库、工作流、插件等 Agent 技能,参考 [接口文档](https://docs.link-ai.tech/platform/api)。
|
||||||
|
|
||||||
@@ -182,7 +182,9 @@ cow install-browser
|
|||||||
# config.json 文件内容示例
|
# config.json 文件内容示例
|
||||||
{
|
{
|
||||||
"channel_type": "weixin", # 接入渠道类型,默认为 weixin, 支持修改为 feishu,dingtalk,wecom_bot,qq,wechatcom_app,wechatmp_service,wechatmp,terminal
|
"channel_type": "weixin", # 接入渠道类型,默认为 weixin, 支持修改为 feishu,dingtalk,wecom_bot,qq,wechatcom_app,wechatmp_service,wechatmp,terminal
|
||||||
"model": "MiniMax-M2.7", # 模型名称
|
"model": "deepseek-v4-flash", # 模型名称
|
||||||
|
"deepseek_api_key": "", # DeepSeek API Key
|
||||||
|
"deepseek_api_base": "https://api.deepseek.com/v1", # DeepSeek API 地址
|
||||||
"minimax_api_key": "", # MiniMax API Key
|
"minimax_api_key": "", # MiniMax API Key
|
||||||
"zhipu_ai_api_key": "", # 智谱 GLM API Key
|
"zhipu_ai_api_key": "", # 智谱 GLM API Key
|
||||||
"moonshot_api_key": "", # Kimi/Moonshot API Key
|
"moonshot_api_key": "", # Kimi/Moonshot API Key
|
||||||
@@ -192,8 +194,6 @@ cow install-browser
|
|||||||
"claude_api_base": "https://api.anthropic.com/v1", # Claude API 地址,修改可接入三方代理平台
|
"claude_api_base": "https://api.anthropic.com/v1", # Claude API 地址,修改可接入三方代理平台
|
||||||
"gemini_api_key": "", # Gemini API Key
|
"gemini_api_key": "", # Gemini API Key
|
||||||
"gemini_api_base": "https://generativelanguage.googleapis.com", # Gemini API 地址
|
"gemini_api_base": "https://generativelanguage.googleapis.com", # Gemini API 地址
|
||||||
"deepseek_api_key": "", # DeepSeek API Key
|
|
||||||
"deepseek_api_base": "https://api.deepseek.com/v1", # DeepSeek API 地址,可修改为第三方代理
|
|
||||||
"open_ai_api_key": "", # OpenAI API Key
|
"open_ai_api_key": "", # OpenAI API Key
|
||||||
"open_ai_api_base": "https://api.openai.com/v1", # OpenAI API 地址
|
"open_ai_api_base": "https://api.openai.com/v1", # OpenAI API 地址
|
||||||
"linkai_api_key": "", # LinkAI API Key
|
"linkai_api_key": "", # LinkAI API Key
|
||||||
@@ -226,7 +226,7 @@ cow install-browser
|
|||||||
<details>
|
<details>
|
||||||
<summary>2. 其他配置</summary>
|
<summary>2. 其他配置</summary>
|
||||||
|
|
||||||
+ `model`: 模型名称,Agent 模式下推荐使用 `MiniMax-M2.7`、`glm-5.1`、`kimi-k2.6`、`qwen3.6-plus`、`claude-sonnet-4-6`、`gemini-3.1-pro-preview`,全部模型名称参考[common/const.py](https://github.com/zhayujie/CowAgent/blob/master/common/const.py)文件
|
+ `model`: 模型名称,Agent 模式下推荐使用 `deepseek-v4-flash`、`MiniMax-M2.7`、`glm-5.1`、`kimi-k2.6`、`qwen3.6-plus`、`claude-sonnet-4-6`、`gemini-3.1-pro-preview`,全部模型名称参考[common/const.py](https://github.com/zhayujie/CowAgent/blob/master/common/const.py)文件
|
||||||
+ `character_desc`:普通对话模式下的机器人系统提示词。在 Agent 模式下该配置不生效,由工作空间中的文件内容构成。
|
+ `character_desc`:普通对话模式下的机器人系统提示词。在 Agent 模式下该配置不生效,由工作空间中的文件内容构成。
|
||||||
+ `subscribe_msg`:订阅消息,公众号和企业微信 channel 中请填写,当被订阅时会自动回复, 可使用特殊占位符。目前支持的占位符有{trigger_prefix},在程序中它会自动替换成 bot 的触发词。
|
+ `subscribe_msg`:订阅消息,公众号和企业微信 channel 中请填写,当被订阅时会自动回复, 可使用特殊占位符。目前支持的占位符有{trigger_prefix},在程序中它会自动替换成 bot 的触发词。
|
||||||
</details>
|
</details>
|
||||||
@@ -313,6 +313,39 @@ sudo docker logs -f chatgpt-on-wechat
|
|||||||
|
|
||||||
推荐通过 Web 控制台在线管理模型配置,无需手动编辑文件,详见 [模型文档](https://docs.cowagent.ai/models)。以下是手动修改 `config.json` 配置模型的说明:
|
推荐通过 Web 控制台在线管理模型配置,无需手动编辑文件,详见 [模型文档](https://docs.cowagent.ai/models)。以下是手动修改 `config.json` 配置模型的说明:
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>DeepSeek</summary>
|
||||||
|
|
||||||
|
1. API Key 创建:在 [DeepSeek 平台](https://platform.deepseek.com/api_keys) 创建 API Key
|
||||||
|
|
||||||
|
2. 填写配置
|
||||||
|
|
||||||
|
方式一:官方接入(推荐):
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"model": "deepseek-v4-flash",
|
||||||
|
"deepseek_api_key": "sk-xxxxxxxxxxx"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
- `model`: 推荐填写 `deepseek-v4-flash`、`deepseek-v4-pro`
|
||||||
|
- `deepseek_api_key`: DeepSeek 平台的 API Key
|
||||||
|
- `deepseek_api_base`: 可选,默认为 `https://api.deepseek.com/v1`,可修改为第三方代理地址
|
||||||
|
|
||||||
|
方式二:OpenAI 兼容方式接入:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"model": "deepseek-v4-flash",
|
||||||
|
"bot_type": "openai",
|
||||||
|
"open_ai_api_key": "sk-xxxxxxxxxxx",
|
||||||
|
"open_ai_api_base": "https://api.deepseek.com/v1"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>MiniMax</summary>
|
<summary>MiniMax</summary>
|
||||||
|
|
||||||
@@ -342,39 +375,6 @@ sudo docker logs -f chatgpt-on-wechat
|
|||||||
- `open_ai_api_key`: MiniMax 平台的 API-KEY
|
- `open_ai_api_key`: MiniMax 平台的 API-KEY
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>DeepSeek</summary>
|
|
||||||
|
|
||||||
1. API Key 创建:在 [DeepSeek 平台](https://platform.deepseek.com/api_keys) 创建 API Key
|
|
||||||
|
|
||||||
2. 填写配置
|
|
||||||
|
|
||||||
方式一:官方接入(推荐):
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"model": "deepseek-v4-pro",
|
|
||||||
"deepseek_api_key": "sk-xxxxxxxxxxx"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
- `model`: 推荐填写 `deepseek-v4-pro`、`deepseek-v4-flash`
|
|
||||||
- `deepseek_api_key`: DeepSeek 平台的 API Key
|
|
||||||
- `deepseek_api_base`: 可选,默认为 `https://api.deepseek.com/v1`,可修改为第三方代理地址
|
|
||||||
|
|
||||||
方式二:OpenAI 兼容方式接入:
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"model": "deepseek-v4-pro",
|
|
||||||
"bot_type": "openai",
|
|
||||||
"open_ai_api_key": "sk-xxxxxxxxxxx",
|
|
||||||
"open_ai_api_base": "https://api.deepseek.com/v1"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Claude</summary>
|
<summary>Claude</summary>
|
||||||
|
|
||||||
|
|||||||
@@ -770,8 +770,8 @@ class ChatHandler:
|
|||||||
class ConfigHandler:
|
class ConfigHandler:
|
||||||
|
|
||||||
_RECOMMENDED_MODELS = [
|
_RECOMMENDED_MODELS = [
|
||||||
|
const.DEEPSEEK_V4_FLASH, const.DEEPSEEK_V4_PRO, const.DEEPSEEK_CHAT, const.DEEPSEEK_REASONER,
|
||||||
const.MINIMAX_M2_7_HIGHSPEED, const.MINIMAX_M2_7, const.MINIMAX_M2_5, const.MINIMAX_M2_1, const.MINIMAX_M2_1_LIGHTNING,
|
const.MINIMAX_M2_7_HIGHSPEED, const.MINIMAX_M2_7, const.MINIMAX_M2_5, const.MINIMAX_M2_1, const.MINIMAX_M2_1_LIGHTNING,
|
||||||
const.DEEPSEEK_V4_PRO, const.DEEPSEEK_V4_FLASH, const.DEEPSEEK_CHAT, const.DEEPSEEK_REASONER,
|
|
||||||
const.CLAUDE_4_6_SONNET, const.CLAUDE_4_7_OPUS, const.CLAUDE_4_6_OPUS, const.CLAUDE_4_5_SONNET,
|
const.CLAUDE_4_6_SONNET, const.CLAUDE_4_7_OPUS, const.CLAUDE_4_6_OPUS, const.CLAUDE_4_5_SONNET,
|
||||||
const.GEMINI_31_FLASH_LITE_PRE, const.GEMINI_31_PRO_PRE, const.GEMINI_3_FLASH_PRE,
|
const.GEMINI_31_FLASH_LITE_PRE, const.GEMINI_31_PRO_PRE, const.GEMINI_3_FLASH_PRE,
|
||||||
const.GPT_54, const.GPT_54_MINI, const.GPT_54_NANO, const.GPT_5, const.GPT_41, const.GPT_4o,
|
const.GPT_54, const.GPT_54_MINI, const.GPT_54_NANO, const.GPT_5, const.GPT_41, const.GPT_4o,
|
||||||
@@ -782,6 +782,13 @@ class ConfigHandler:
|
|||||||
]
|
]
|
||||||
|
|
||||||
PROVIDER_MODELS = OrderedDict([
|
PROVIDER_MODELS = OrderedDict([
|
||||||
|
("deepseek", {
|
||||||
|
"label": "DeepSeek",
|
||||||
|
"api_key_field": "deepseek_api_key",
|
||||||
|
"api_base_key": "deepseek_api_base",
|
||||||
|
"api_base_default": "https://api.deepseek.com/v1",
|
||||||
|
"models": [const.DEEPSEEK_V4_FLASH, const.DEEPSEEK_V4_PRO, const.DEEPSEEK_CHAT, const.DEEPSEEK_REASONER],
|
||||||
|
}),
|
||||||
("minimax", {
|
("minimax", {
|
||||||
"label": "MiniMax",
|
"label": "MiniMax",
|
||||||
"api_key_field": "minimax_api_key",
|
"api_key_field": "minimax_api_key",
|
||||||
@@ -789,13 +796,6 @@ class ConfigHandler:
|
|||||||
"api_base_default": None,
|
"api_base_default": None,
|
||||||
"models": [const.MINIMAX_M2_7, const.MINIMAX_M2_7_HIGHSPEED, const.MINIMAX_M2_5, const.MINIMAX_M2_1, const.MINIMAX_M2_1_LIGHTNING],
|
"models": [const.MINIMAX_M2_7, const.MINIMAX_M2_7_HIGHSPEED, const.MINIMAX_M2_5, const.MINIMAX_M2_1, const.MINIMAX_M2_1_LIGHTNING],
|
||||||
}),
|
}),
|
||||||
("deepseek", {
|
|
||||||
"label": "DeepSeek",
|
|
||||||
"api_key_field": "deepseek_api_key",
|
|
||||||
"api_base_key": "deepseek_api_base",
|
|
||||||
"api_base_default": "https://api.deepseek.com/v1",
|
|
||||||
"models": [const.DEEPSEEK_V4_PRO, const.DEEPSEEK_V4_FLASH, const.DEEPSEEK_CHAT, const.DEEPSEEK_REASONER],
|
|
||||||
}),
|
|
||||||
("claudeAPI", {
|
("claudeAPI", {
|
||||||
"label": "Claude",
|
"label": "Claude",
|
||||||
"api_key_field": "claude_api_key",
|
"api_key_field": "claude_api_key",
|
||||||
|
|||||||
@@ -82,8 +82,8 @@ TTS_1_HD = "tts-1-hd"
|
|||||||
# DeepSeek
|
# DeepSeek
|
||||||
DEEPSEEK_CHAT = "deepseek-chat" # DeepSeek-V3对话模型
|
DEEPSEEK_CHAT = "deepseek-chat" # DeepSeek-V3对话模型
|
||||||
DEEPSEEK_REASONER = "deepseek-reasoner" # DeepSeek-R1模型
|
DEEPSEEK_REASONER = "deepseek-reasoner" # DeepSeek-R1模型
|
||||||
DEEPSEEK_V4_FLASH = "deepseek-v4-flash" # DeepSeek V4 Flash - 思考模式 + 工具调用
|
DEEPSEEK_V4_FLASH = "deepseek-v4-flash" # DeepSeek V4 Flash - 默认推荐 (思考模式 + 工具调用)
|
||||||
DEEPSEEK_V4_PRO = "deepseek-v4-pro" # DeepSeek V4 Pro - Agent推荐模型 (思考模式 + 工具调用)
|
DEEPSEEK_V4_PRO = "deepseek-v4-pro" # DeepSeek V4 Pro - 复杂任务更强 (思考模式 + 工具调用)
|
||||||
|
|
||||||
# Qwen (通义千问 - 阿里云 DashScope)
|
# Qwen (通义千问 - 阿里云 DashScope)
|
||||||
QWEN_TURBO = "qwen-turbo"
|
QWEN_TURBO = "qwen-turbo"
|
||||||
@@ -156,12 +156,12 @@ MODELSCOPE_MODEL_LIST = ["deepseek-ai/DeepSeek-R1-0528", "deepseek-ai/DeepSeek-R
|
|||||||
|
|
||||||
|
|
||||||
MODEL_LIST = [
|
MODEL_LIST = [
|
||||||
|
# DeepSeek
|
||||||
|
DEEPSEEK_V4_FLASH, DEEPSEEK_V4_PRO, DEEPSEEK_CHAT, DEEPSEEK_REASONER,
|
||||||
|
|
||||||
# MiniMax
|
# MiniMax
|
||||||
MiniMax, MINIMAX_M2_7, MINIMAX_M2_7_HIGHSPEED, MINIMAX_M2_5, MINIMAX_M2_1, MINIMAX_M2_1_LIGHTNING, MINIMAX_M2, MINIMAX_ABAB6_5,
|
MiniMax, MINIMAX_M2_7, MINIMAX_M2_7_HIGHSPEED, MINIMAX_M2_5, MINIMAX_M2_1, MINIMAX_M2_1_LIGHTNING, MINIMAX_M2, MINIMAX_ABAB6_5,
|
||||||
|
|
||||||
# DeepSeek
|
|
||||||
DEEPSEEK_V4_PRO, DEEPSEEK_V4_FLASH, DEEPSEEK_CHAT, DEEPSEEK_REASONER,
|
|
||||||
|
|
||||||
# Claude
|
# Claude
|
||||||
CLAUDE3, CLAUDE_4_6_SONNET, CLAUDE_4_7_OPUS, CLAUDE_4_6_OPUS, CLAUDE_4_OPUS, CLAUDE_4_5_SONNET, CLAUDE_4_SONNET, CLAUDE_3_OPUS, CLAUDE_3_OPUS_0229,
|
CLAUDE3, CLAUDE_4_6_SONNET, CLAUDE_4_7_OPUS, CLAUDE_4_6_OPUS, CLAUDE_4_OPUS, CLAUDE_4_5_SONNET, CLAUDE_4_SONNET, CLAUDE_3_OPUS, CLAUDE_3_OPUS_0229,
|
||||||
CLAUDE_35_SONNET, CLAUDE_35_SONNET_1022, CLAUDE_35_SONNET_0620, CLAUDE_3_SONNET, CLAUDE_3_HAIKU,
|
CLAUDE_35_SONNET, CLAUDE_35_SONNET_1022, CLAUDE_35_SONNET_0620, CLAUDE_3_SONNET, CLAUDE_3_HAIKU,
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{
|
{
|
||||||
"channel_type": "weixin",
|
"channel_type": "weixin",
|
||||||
"model": "MiniMax-M2.7",
|
"model": "deepseek-v4-flash",
|
||||||
|
"deepseek_api_key": "",
|
||||||
|
"deepseek_api_base": "https://api.deepseek.com/v1",
|
||||||
"minimax_api_key": "",
|
"minimax_api_key": "",
|
||||||
"zhipu_ai_api_key": "",
|
"zhipu_ai_api_key": "",
|
||||||
"ark_api_key": "",
|
"ark_api_key": "",
|
||||||
|
|||||||
@@ -196,6 +196,8 @@ available_setting = {
|
|||||||
"minimax_api_key": "",
|
"minimax_api_key": "",
|
||||||
"Minimax_group_id": "",
|
"Minimax_group_id": "",
|
||||||
"Minimax_base_url": "",
|
"Minimax_base_url": "",
|
||||||
|
"deepseek_api_key": "",
|
||||||
|
"deepseek_api_base": "https://api.deepseek.com/v1",
|
||||||
"web_port": 9899,
|
"web_port": 9899,
|
||||||
"web_password": "", # Web console password; empty means no authentication required
|
"web_password": "", # Web console password; empty means no authentication required
|
||||||
"web_session_expire_days": 30, # Auth session expiry in days
|
"web_session_expire_days": 30, # Auth session expiry in days
|
||||||
@@ -382,6 +384,8 @@ def load_config():
|
|||||||
"gemini_api_base": "GEMINI_API_BASE",
|
"gemini_api_base": "GEMINI_API_BASE",
|
||||||
"minimax_api_key": "MINIMAX_API_KEY",
|
"minimax_api_key": "MINIMAX_API_KEY",
|
||||||
"minimax_api_base": "MINIMAX_API_BASE",
|
"minimax_api_base": "MINIMAX_API_BASE",
|
||||||
|
"deepseek_api_key": "DEEPSEEK_API_KEY",
|
||||||
|
"deepseek_api_base": "DEEPSEEK_API_BASE",
|
||||||
"zhipu_ai_api_key": "ZHIPU_AI_API_KEY",
|
"zhipu_ai_api_key": "ZHIPU_AI_API_KEY",
|
||||||
"zhipu_ai_api_base": "ZHIPU_AI_API_BASE",
|
"zhipu_ai_api_base": "ZHIPU_AI_API_BASE",
|
||||||
"moonshot_api_key": "MOONSHOT_API_KEY",
|
"moonshot_api_key": "MOONSHOT_API_KEY",
|
||||||
|
|||||||
@@ -9,7 +9,9 @@ services:
|
|||||||
- "9899:9899"
|
- "9899:9899"
|
||||||
environment:
|
environment:
|
||||||
CHANNEL_TYPE: 'weixin'
|
CHANNEL_TYPE: 'weixin'
|
||||||
MODEL: 'MiniMax-M2.7'
|
MODEL: 'deepseek-v4-flash'
|
||||||
|
DEEPSEEK_API_KEY: ''
|
||||||
|
DEEPSEEK_API_BASE: 'https://api.deepseek.com/v1'
|
||||||
MINIMAX_API_KEY: ''
|
MINIMAX_API_KEY: ''
|
||||||
ZHIPU_AI_API_KEY: ''
|
ZHIPU_AI_API_KEY: ''
|
||||||
ARK_API_KEY: ''
|
ARK_API_KEY: ''
|
||||||
|
|||||||
@@ -58,14 +58,14 @@ Session: 12 messages | 8 skills loaded
|
|||||||
**修改配置项:**
|
**修改配置项:**
|
||||||
|
|
||||||
```text
|
```text
|
||||||
/config model deepseek-v4-pro
|
/config model deepseek-v4-flash
|
||||||
```
|
```
|
||||||
|
|
||||||
**支持修改的配置项:**
|
**支持修改的配置项:**
|
||||||
|
|
||||||
| 配置项 | 说明 | 示例值 |
|
| 配置项 | 说明 | 示例值 |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| `model` | AI 模型名称 | `deepseek-v4-pro` |
|
| `model` | AI 模型名称 | `deepseek-v4-flash` |
|
||||||
| `agent_max_context_tokens` | 最大上下文 tokens | `40000` |
|
| `agent_max_context_tokens` | 最大上下文 tokens | `40000` |
|
||||||
| `agent_max_context_turns` | 最大上下文记忆轮次 | `30` |
|
| `agent_max_context_turns` | 最大上下文记忆轮次 | `30` |
|
||||||
| `agent_max_steps` | 单次任务最大决策步数 | `15` |
|
| `agent_max_steps` | 单次任务最大决策步数 | `15` |
|
||||||
|
|||||||
@@ -72,8 +72,8 @@
|
|||||||
"group": "模型配置",
|
"group": "模型配置",
|
||||||
"pages": [
|
"pages": [
|
||||||
"models/index",
|
"models/index",
|
||||||
"models/minimax",
|
|
||||||
"models/deepseek",
|
"models/deepseek",
|
||||||
|
"models/minimax",
|
||||||
"models/claude",
|
"models/claude",
|
||||||
"models/gemini",
|
"models/gemini",
|
||||||
"models/openai",
|
"models/openai",
|
||||||
@@ -257,8 +257,8 @@
|
|||||||
"group": "Model Configuration",
|
"group": "Model Configuration",
|
||||||
"pages": [
|
"pages": [
|
||||||
"en/models/index",
|
"en/models/index",
|
||||||
"en/models/minimax",
|
|
||||||
"en/models/deepseek",
|
"en/models/deepseek",
|
||||||
|
"en/models/minimax",
|
||||||
"en/models/claude",
|
"en/models/claude",
|
||||||
"en/models/gemini",
|
"en/models/gemini",
|
||||||
"en/models/openai",
|
"en/models/openai",
|
||||||
@@ -441,8 +441,8 @@
|
|||||||
"group": "モデル設定",
|
"group": "モデル設定",
|
||||||
"pages": [
|
"pages": [
|
||||||
"ja/models/index",
|
"ja/models/index",
|
||||||
"ja/models/minimax",
|
|
||||||
"ja/models/deepseek",
|
"ja/models/deepseek",
|
||||||
|
"ja/models/minimax",
|
||||||
"ja/models/claude",
|
"ja/models/claude",
|
||||||
"ja/models/gemini",
|
"ja/models/gemini",
|
||||||
"ja/models/openai",
|
"ja/models/openai",
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
- ✅ **Tool System**: Built-in tools for file I/O, terminal execution, browser automation, scheduled tasks, messaging, and more — autonomously invoked by the Agent.
|
- ✅ **Tool System**: Built-in tools for file I/O, terminal execution, browser automation, scheduled tasks, messaging, and more — autonomously invoked by the Agent.
|
||||||
- ✅ **CLI System**: Provides terminal commands and in-chat commands for process management, skill installation, configuration, and more.
|
- ✅ **CLI System**: Provides terminal commands and in-chat commands for process management, skill installation, configuration, and more.
|
||||||
- ✅ **Multimodal Messages**: Supports parsing, processing, generating, and sending text, images, voice, files, and other message types.
|
- ✅ **Multimodal Messages**: Supports parsing, processing, generating, and sending text, images, voice, files, and other message types.
|
||||||
- ✅ **Multiple Model Support**: Supports MiniMax, DeepSeek, Claude, Gemini, OpenAI, GLM, Qwen, Doubao, Kimi, and other mainstream model providers.
|
- ✅ **Multiple Model Support**: Supports DeepSeek, MiniMax, Claude, Gemini, OpenAI, GLM, Qwen, Doubao, Kimi, and other mainstream model providers.
|
||||||
- ✅ **Multi-platform Deployment**: Runs on local computers or servers, integrable into WeChat, Web, Feishu, DingTalk, WeChat Official Account, and WeCom applications.
|
- ✅ **Multi-platform Deployment**: Runs on local computers or servers, integrable into WeChat, Web, Feishu, DingTalk, WeChat Official Account, and WeCom applications.
|
||||||
|
|
||||||
## Disclaimer
|
## Disclaimer
|
||||||
@@ -164,8 +164,8 @@ Supports mainstream model providers. Recommended models for Agent mode:
|
|||||||
|
|
||||||
| Provider | Recommended Model |
|
| Provider | Recommended Model |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
|
| DeepSeek | `deepseek-v4-flash` |
|
||||||
| MiniMax | `MiniMax-M2.7` |
|
| MiniMax | `MiniMax-M2.7` |
|
||||||
| DeepSeek | `deepseek-v4-pro` |
|
|
||||||
| Claude | `claude-sonnet-4-6` |
|
| Claude | `claude-sonnet-4-6` |
|
||||||
| Gemini | `gemini-3.1-pro-preview` |
|
| Gemini | `gemini-3.1-pro-preview` |
|
||||||
| OpenAI | `gpt-5.4` |
|
| OpenAI | `gpt-5.4` |
|
||||||
|
|||||||
@@ -44,14 +44,14 @@ View or modify runtime configuration. Changes take effect immediately without re
|
|||||||
**Modify a config item:**
|
**Modify a config item:**
|
||||||
|
|
||||||
```text
|
```text
|
||||||
/config model deepseek-v4-pro
|
/config model deepseek-v4-flash
|
||||||
```
|
```
|
||||||
|
|
||||||
**Configurable items:**
|
**Configurable items:**
|
||||||
|
|
||||||
| Item | Description | Example |
|
| Item | Description | Example |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| `model` | AI model name | `deepseek-v4-pro` |
|
| `model` | AI model name | `deepseek-v4-flash` |
|
||||||
| `agent_max_context_tokens` | Max context tokens | `40000` |
|
| `agent_max_context_tokens` | Max context tokens | `40000` |
|
||||||
| `agent_max_context_turns` | Max context memory turns | `30` |
|
| `agent_max_context_turns` | Max context memory turns | `30` |
|
||||||
| `agent_max_steps` | Max decision steps per task | `15` |
|
| `agent_max_steps` | Max decision steps per task | `15` |
|
||||||
|
|||||||
@@ -121,7 +121,8 @@ sudo docker logs -f chatgpt-on-wechat
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"channel_type": "web",
|
"channel_type": "web",
|
||||||
"model": "MiniMax-M2.5",
|
"model": "deepseek-v4-flash",
|
||||||
|
"deepseek_api_key": "",
|
||||||
"agent": true,
|
"agent": true,
|
||||||
"agent_workspace": "~/cow",
|
"agent_workspace": "~/cow",
|
||||||
"agent_max_context_tokens": 40000,
|
"agent_max_context_tokens": 40000,
|
||||||
@@ -133,7 +134,7 @@ sudo docker logs -f chatgpt-on-wechat
|
|||||||
| Parameter | Description | Default |
|
| Parameter | Description | Default |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| `channel_type` | Channel type | `web` |
|
| `channel_type` | Channel type | `web` |
|
||||||
| `model` | Model name | `MiniMax-M2.5` |
|
| `model` | Model name | `deepseek-v4-flash` |
|
||||||
| `agent` | Enable Agent mode | `true` |
|
| `agent` | Enable Agent mode | `true` |
|
||||||
| `agent_workspace` | Agent workspace path | `~/cow` |
|
| `agent_workspace` | Agent workspace path | `~/cow` |
|
||||||
| `agent_max_context_tokens` | Max context tokens | `40000` |
|
| `agent_max_context_tokens` | Max context tokens | `40000` |
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ For models accessed via OpenAI-compatible APIs, such as:
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"bot_type": "custom",
|
"bot_type": "custom",
|
||||||
"model": "deepseek-v4-pro",
|
"model": "deepseek-v4-flash",
|
||||||
"custom_api_key": "YOUR_API_KEY",
|
"custom_api_key": "YOUR_API_KEY",
|
||||||
"custom_api_base": "https://{your-proxy.com}/v1"
|
"custom_api_base": "https://{your-proxy.com}/v1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,14 +7,14 @@ Option 1: Native integration (recommended):
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"model": "deepseek-v4-pro",
|
"model": "deepseek-v4-flash",
|
||||||
"deepseek_api_key": "YOUR_API_KEY"
|
"deepseek_api_key": "YOUR_API_KEY"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
| Parameter | Description |
|
| Parameter | Description |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `model` | Supports `deepseek-v4-pro` and `deepseek-v4-flash` |
|
| `model` | Supports `deepseek-v4-flash` (default) and `deepseek-v4-pro` |
|
||||||
| `deepseek_api_key` | Create at [DeepSeek Platform](https://platform.deepseek.com/api_keys) |
|
| `deepseek_api_key` | Create at [DeepSeek Platform](https://platform.deepseek.com/api_keys) |
|
||||||
| `deepseek_api_base` | Optional, defaults to `https://api.deepseek.com/v1`. Can be changed to a third-party proxy |
|
| `deepseek_api_base` | Optional, defaults to `https://api.deepseek.com/v1`. Can be changed to a third-party proxy |
|
||||||
|
|
||||||
@@ -22,12 +22,12 @@ Option 1: Native integration (recommended):
|
|||||||
|
|
||||||
| Model | Use Case |
|
| Model | Use Case |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `deepseek-v4-pro` | Best on complex tasks |
|
| `deepseek-v4-flash` | Default: fast and cost-effective |
|
||||||
| `deepseek-v4-flash` | Faster and cheaper |
|
| `deepseek-v4-pro` | Stronger on complex tasks |
|
||||||
|
|
||||||
## Thinking Mode
|
## Thinking Mode
|
||||||
|
|
||||||
The V4 series (`deepseek-v4-pro` / `deepseek-v4-flash`) supports an explicit "thinking mode": the model emits a chain-of-thought (`reasoning_content`) before the final answer to improve answer quality.
|
The V4 series (`deepseek-v4-flash` / `deepseek-v4-pro`) supports an explicit "thinking mode": the model emits a chain-of-thought (`reasoning_content`) before the final answer to improve answer quality.
|
||||||
|
|
||||||
### Toggle
|
### Toggle
|
||||||
|
|
||||||
@@ -48,14 +48,14 @@ Controlled by the global `enable_thinking` setting:
|
|||||||
- **Multi-turn tool calls**: once the history contains any tool-call turn, DeepSeek requires `reasoning_content` on every assistant message. CowAgent handles the round-trip automatically, including across mid-session toggles of the thinking switch.
|
- **Multi-turn tool calls**: once the history contains any tool-call turn, DeepSeek requires `reasoning_content` on every assistant message. CowAgent handles the round-trip automatically, including across mid-session toggles of the thinking switch.
|
||||||
|
|
||||||
<Tip>
|
<Tip>
|
||||||
Use `deepseek-v4-pro` for complex tasks; pick `deepseek-v4-flash` when low latency and low cost matter; enable `enable_thinking` when you want deeper reasoning.
|
Start with `deepseek-v4-flash`; switch to `deepseek-v4-pro` for harder tasks; enable `enable_thinking` when you want deeper reasoning.
|
||||||
</Tip>
|
</Tip>
|
||||||
|
|
||||||
Option 2: OpenAI-compatible configuration:
|
Option 2: OpenAI-compatible configuration:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"model": "deepseek-v4-pro",
|
"model": "deepseek-v4-flash",
|
||||||
"bot_type": "openai",
|
"bot_type": "openai",
|
||||||
"open_ai_api_key": "YOUR_API_KEY",
|
"open_ai_api_key": "YOUR_API_KEY",
|
||||||
"open_ai_api_base": "https://api.deepseek.com/v1"
|
"open_ai_api_base": "https://api.deepseek.com/v1"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ description: Supported models and recommended choices for CowAgent
|
|||||||
CowAgent supports mainstream LLMs from domestic and international providers. Model interfaces are implemented in the project's `models/` directory.
|
CowAgent supports mainstream LLMs from domestic and international providers. Model interfaces are implemented in the project's `models/` directory.
|
||||||
|
|
||||||
<Note>
|
<Note>
|
||||||
For Agent mode, the following models are recommended based on quality and cost: MiniMax-M2.7, deepseek-v4-pro, claude-sonnet-4-6, gemini-3.1-pro-preview, glm-5.1, qwen3.6-plus, kimi-k2.6
|
For Agent mode, the following models are recommended based on quality and cost: deepseek-v4-flash, MiniMax-M2.7, claude-sonnet-4-6, gemini-3.1-pro-preview, glm-5.1, qwen3.6-plus, kimi-k2.6
|
||||||
</Note>
|
</Note>
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
@@ -18,12 +18,12 @@ You can also use the [LinkAI](https://link-ai.tech) platform interface to flexib
|
|||||||
## Supported Models
|
## Supported Models
|
||||||
|
|
||||||
<CardGroup cols={2}>
|
<CardGroup cols={2}>
|
||||||
|
<Card title="DeepSeek" href="/en/models/deepseek">
|
||||||
|
deepseek-v4-flash, deepseek-v4-pro, and more
|
||||||
|
</Card>
|
||||||
<Card title="MiniMax" href="/en/models/minimax">
|
<Card title="MiniMax" href="/en/models/minimax">
|
||||||
MiniMax-M2.7 and other series models
|
MiniMax-M2.7 and other series models
|
||||||
</Card>
|
</Card>
|
||||||
<Card title="DeepSeek" href="/en/models/deepseek">
|
|
||||||
deepseek-v4-pro, deepseek-v4-flash, deepseek-chat, deepseek-reasoner
|
|
||||||
</Card>
|
|
||||||
<Card title="Claude" href="/en/models/claude">
|
<Card title="Claude" href="/en/models/claude">
|
||||||
claude-sonnet-4-6 and more
|
claude-sonnet-4-6 and more
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: LinkAI
|
|||||||
description: Unified access to multiple models via LinkAI platform
|
description: Unified access to multiple models via LinkAI platform
|
||||||
---
|
---
|
||||||
|
|
||||||
The [LinkAI](https://link-ai.tech) platform lets you flexibly switch between OpenAI, Claude, Gemini, DeepSeek, Qwen, Kimi, and other models, with support for knowledge base, workflows, plugins, and other Agent capabilities.
|
The [LinkAI](https://link-ai.tech) platform lets you flexibly switch between OpenAI, Claude, Gemini, DeepSeek, MiniMax, Qwen, Kimi, and other models, with support for knowledge base, workflows, plugins, and other Agent capabilities.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -139,7 +139,8 @@ sudo docker logs -f chatgpt-on-wechat
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"channel_type": "web",
|
"channel_type": "web",
|
||||||
"model": "MiniMax-M2.7",
|
"model": "deepseek-v4-flash",
|
||||||
|
"deepseek_api_key": "",
|
||||||
"agent": true,
|
"agent": true,
|
||||||
"agent_workspace": "~/cow",
|
"agent_workspace": "~/cow",
|
||||||
"agent_max_context_tokens": 40000,
|
"agent_max_context_tokens": 40000,
|
||||||
@@ -152,8 +153,9 @@ sudo docker logs -f chatgpt-on-wechat
|
|||||||
```yaml
|
```yaml
|
||||||
environment:
|
environment:
|
||||||
CHANNEL_TYPE: 'web'
|
CHANNEL_TYPE: 'web'
|
||||||
MODEL: 'MiniMax-M2.7'
|
MODEL: 'deepseek-v4-flash'
|
||||||
MINIMAX_API_KEY: 'your-api-key'
|
DEEPSEEK_API_KEY: 'your-api-key'
|
||||||
|
DEEPSEEK_API_BASE: 'https://api.deepseek.com/v1'
|
||||||
AGENT: 'True'
|
AGENT: 'True'
|
||||||
AGENT_MAX_CONTEXT_TOKENS: 40000
|
AGENT_MAX_CONTEXT_TOKENS: 40000
|
||||||
AGENT_MAX_CONTEXT_TURNS: 30
|
AGENT_MAX_CONTEXT_TURNS: 30
|
||||||
@@ -165,7 +167,7 @@ sudo docker logs -f chatgpt-on-wechat
|
|||||||
| 参数 | 环境变量 | 说明 | 默认值 |
|
| 参数 | 环境变量 | 说明 | 默认值 |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| `channel_type` | `CHANNEL_TYPE` | 接入渠道类型 | `web` |
|
| `channel_type` | `CHANNEL_TYPE` | 接入渠道类型 | `web` |
|
||||||
| `model` | `MODEL` | 模型名称 | `MiniMax-M2.5` |
|
| `model` | `MODEL` | 模型名称 | `deepseek-v4-flash` |
|
||||||
| `agent` | `AGENT` | 是否启用 Agent 模式 | `true` |
|
| `agent` | `AGENT` | 是否启用 Agent 模式 | `true` |
|
||||||
| `agent_workspace` | - | Agent 工作空间路径 | `~/cow` |
|
| `agent_workspace` | - | Agent 工作空间路径 | `~/cow` |
|
||||||
| `agent_max_context_tokens` | `AGENT_MAX_CONTEXT_TOKENS` | 最大上下文 tokens | `40000` |
|
| `agent_max_context_tokens` | `AGENT_MAX_CONTEXT_TOKENS` | 最大上下文 tokens | `40000` |
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
- ✅ **ツールシステム**: ファイル読み書き、ターミナル実行、ブラウザ操作、スケジュールタスク、メッセージ送信などの組み込みツールを提供。Agentが自律的に呼び出して複雑なタスクを完了します。
|
- ✅ **ツールシステム**: ファイル読み書き、ターミナル実行、ブラウザ操作、スケジュールタスク、メッセージ送信などの組み込みツールを提供。Agentが自律的に呼び出して複雑なタスクを完了します。
|
||||||
- ✅ **CLIシステム**: ターミナルコマンドとチャットコマンドを提供し、プロセス管理、Skillインストール、設定変更などの操作をサポートします。
|
- ✅ **CLIシステム**: ターミナルコマンドとチャットコマンドを提供し、プロセス管理、Skillインストール、設定変更などの操作をサポートします。
|
||||||
- ✅ **マルチモーダルメッセージ**: テキスト、画像、音声、ファイルなど、さまざまなメッセージタイプの解析・処理・生成・送信に対応しています。
|
- ✅ **マルチモーダルメッセージ**: テキスト、画像、音声、ファイルなど、さまざまなメッセージタイプの解析・処理・生成・送信に対応しています。
|
||||||
- ✅ **複数モデル対応**: MiniMax、DeepSeek、Claude、Gemini、OpenAI、GLM、Qwen、Doubao、Kimiなど、主要なモデルプロバイダーに対応しています。
|
- ✅ **複数モデル対応**: DeepSeek、MiniMax、Claude、Gemini、OpenAI、GLM、Qwen、Doubao、Kimiなど、主要なモデルプロバイダーに対応しています。
|
||||||
- ✅ **マルチプラットフォームデプロイ**: ローカルPCやサーバー上で実行でき、WeChat、Web、Feishu、DingTalk、WeChat公式アカウント、WeComアプリケーションに統合可能です。
|
- ✅ **マルチプラットフォームデプロイ**: ローカルPCやサーバー上で実行でき、WeChat、Web、Feishu、DingTalk、WeChat公式アカウント、WeComアプリケーションに統合可能です。
|
||||||
|
|
||||||
## 免責事項
|
## 免責事項
|
||||||
@@ -164,8 +164,8 @@ sudo docker logs -f chatgpt-on-wechat
|
|||||||
|
|
||||||
| プロバイダー | 推奨モデル |
|
| プロバイダー | 推奨モデル |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
|
| DeepSeek | `deepseek-v4-flash` |
|
||||||
| MiniMax | `MiniMax-M2.7` |
|
| MiniMax | `MiniMax-M2.7` |
|
||||||
| DeepSeek | `deepseek-v4-pro` |
|
|
||||||
| Claude | `claude-sonnet-4-6` |
|
| Claude | `claude-sonnet-4-6` |
|
||||||
| Gemini | `gemini-3.1-pro-preview` |
|
| Gemini | `gemini-3.1-pro-preview` |
|
||||||
| OpenAI | `gpt-5.4` |
|
| OpenAI | `gpt-5.4` |
|
||||||
|
|||||||
@@ -44,14 +44,14 @@ description: ステータスの確認、設定管理、コンテキスト制御
|
|||||||
**設定項目を変更:**
|
**設定項目を変更:**
|
||||||
|
|
||||||
```text
|
```text
|
||||||
/config model deepseek-v4-pro
|
/config model deepseek-v4-flash
|
||||||
```
|
```
|
||||||
|
|
||||||
**変更可能な設定項目:**
|
**変更可能な設定項目:**
|
||||||
|
|
||||||
| 項目 | 説明 | 例 |
|
| 項目 | 説明 | 例 |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| `model` | AI モデル名 | `deepseek-v4-pro` |
|
| `model` | AI モデル名 | `deepseek-v4-flash` |
|
||||||
| `agent_max_context_tokens` | 最大コンテキストトークン数 | `40000` |
|
| `agent_max_context_tokens` | 最大コンテキストトークン数 | `40000` |
|
||||||
| `agent_max_context_turns` | 最大コンテキスト記憶ターン数 | `30` |
|
| `agent_max_context_turns` | 最大コンテキスト記憶ターン数 | `30` |
|
||||||
| `agent_max_steps` | タスクごとの最大判断ステップ数 | `15` |
|
| `agent_max_steps` | タスクごとの最大判断ステップ数 | `15` |
|
||||||
|
|||||||
@@ -121,7 +121,8 @@ sudo docker logs -f chatgpt-on-wechat
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"channel_type": "web",
|
"channel_type": "web",
|
||||||
"model": "MiniMax-M2.5",
|
"model": "deepseek-v4-flash",
|
||||||
|
"deepseek_api_key": "",
|
||||||
"agent": true,
|
"agent": true,
|
||||||
"agent_workspace": "~/cow",
|
"agent_workspace": "~/cow",
|
||||||
"agent_max_context_tokens": 40000,
|
"agent_max_context_tokens": 40000,
|
||||||
@@ -133,7 +134,7 @@ sudo docker logs -f chatgpt-on-wechat
|
|||||||
| パラメータ | 説明 | デフォルト値 |
|
| パラメータ | 説明 | デフォルト値 |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| `channel_type` | チャネルタイプ | `web` |
|
| `channel_type` | チャネルタイプ | `web` |
|
||||||
| `model` | モデル名 | `MiniMax-M2.5` |
|
| `model` | モデル名 | `deepseek-v4-flash` |
|
||||||
| `agent` | Agent モードを有効化 | `true` |
|
| `agent` | Agent モードを有効化 | `true` |
|
||||||
| `agent_workspace` | Agent のワークスペースパス | `~/cow` |
|
| `agent_workspace` | Agent のワークスペースパス | `~/cow` |
|
||||||
| `agent_max_context_tokens` | 最大コンテキストトークン数 | `40000` |
|
| `agent_max_context_tokens` | 最大コンテキストトークン数 | `40000` |
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ OpenAI互換プロトコルでアクセスするモデルサービスに適用
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"bot_type": "custom",
|
"bot_type": "custom",
|
||||||
"model": "deepseek-v4-pro",
|
"model": "deepseek-v4-flash",
|
||||||
"custom_api_key": "YOUR_API_KEY",
|
"custom_api_key": "YOUR_API_KEY",
|
||||||
"custom_api_base": "https://{your-proxy.com}/v1"
|
"custom_api_base": "https://{your-proxy.com}/v1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,14 +7,14 @@ description: DeepSeekモデルの設定
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"model": "deepseek-v4-pro",
|
"model": "deepseek-v4-flash",
|
||||||
"deepseek_api_key": "YOUR_API_KEY"
|
"deepseek_api_key": "YOUR_API_KEY"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
| パラメータ | 説明 |
|
| パラメータ | 説明 |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `model` | `deepseek-v4-pro`、`deepseek-v4-flash` をサポート |
|
| `model` | `deepseek-v4-flash`(デフォルト)、`deepseek-v4-pro` をサポート |
|
||||||
| `deepseek_api_key` | [DeepSeek Platform](https://platform.deepseek.com/api_keys) で作成 |
|
| `deepseek_api_key` | [DeepSeek Platform](https://platform.deepseek.com/api_keys) で作成 |
|
||||||
| `deepseek_api_base` | オプション、デフォルトは `https://api.deepseek.com/v1`。サードパーティプロキシに変更可能 |
|
| `deepseek_api_base` | オプション、デフォルトは `https://api.deepseek.com/v1`。サードパーティプロキシに変更可能 |
|
||||||
|
|
||||||
@@ -22,12 +22,12 @@ description: DeepSeekモデルの設定
|
|||||||
|
|
||||||
| モデル | 適用シーン |
|
| モデル | 適用シーン |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `deepseek-v4-pro` | 複雑なタスクに最適 |
|
| `deepseek-v4-flash` | デフォルト推奨、高速・低コスト |
|
||||||
| `deepseek-v4-flash` | 高速・低コスト |
|
| `deepseek-v4-pro` | 複雑なタスクでより強力 |
|
||||||
|
|
||||||
## 思考モード
|
## 思考モード
|
||||||
|
|
||||||
V4シリーズ(`deepseek-v4-pro` / `deepseek-v4-flash`)は明示的な「思考モード」をサポートします。最終回答の前に思考内容(`reasoning_content`)を出力することで、回答品質を高めます。
|
V4シリーズ(`deepseek-v4-flash` / `deepseek-v4-pro`)は明示的な「思考モード」をサポートします。最終回答の前に思考内容(`reasoning_content`)を出力することで、回答品質を高めます。
|
||||||
|
|
||||||
### スイッチ
|
### スイッチ
|
||||||
|
|
||||||
@@ -48,14 +48,14 @@ V4シリーズ(`deepseek-v4-pro` / `deepseek-v4-flash`)は明示的な「思
|
|||||||
- **マルチターンのツール呼び出し**:履歴にツール呼び出しが含まれる場合、DeepSeekはすべてのassistantメッセージに `reasoning_content` を返送するよう要求します。CowAgentが自動でラウンドトリップ処理を行うため、セッション途中で思考スイッチを切り替えてもエラーになりません。
|
- **マルチターンのツール呼び出し**:履歴にツール呼び出しが含まれる場合、DeepSeekはすべてのassistantメッセージに `reasoning_content` を返送するよう要求します。CowAgentが自動でラウンドトリップ処理を行うため、セッション途中で思考スイッチを切り替えてもエラーになりません。
|
||||||
|
|
||||||
<Tip>
|
<Tip>
|
||||||
複雑なタスクには `deepseek-v4-pro` を、低レイテンシ・低コストを重視する場合は `deepseek-v4-flash` を選び、深い思考が必要な時は `enable_thinking` を有効にしてください。
|
通常は `deepseek-v4-flash` を使い、難しいタスクでは `deepseek-v4-pro` に切り替え、深い思考が必要な時は `enable_thinking` を有効にしてください。
|
||||||
</Tip>
|
</Tip>
|
||||||
|
|
||||||
方法2:OpenAI互換方式:
|
方法2:OpenAI互換方式:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"model": "deepseek-v4-pro",
|
"model": "deepseek-v4-flash",
|
||||||
"bot_type": "openai",
|
"bot_type": "openai",
|
||||||
"open_ai_api_key": "YOUR_API_KEY",
|
"open_ai_api_key": "YOUR_API_KEY",
|
||||||
"open_ai_api_base": "https://api.deepseek.com/v1"
|
"open_ai_api_base": "https://api.deepseek.com/v1"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ description: CowAgentがサポートするモデルとおすすめの選択肢
|
|||||||
CowAgentは国内外の主要なLLMをサポートしています。モデルインターフェースはプロジェクトの`models/`ディレクトリに実装されています。
|
CowAgentは国内外の主要なLLMをサポートしています。モデルインターフェースはプロジェクトの`models/`ディレクトリに実装されています。
|
||||||
|
|
||||||
<Note>
|
<Note>
|
||||||
Agent モードでは、品質とコストのバランスから以下のモデルをおすすめします: MiniMax-M2.7、deepseek-v4-pro、claude-sonnet-4-6、gemini-3.1-pro-preview、glm-5.1、qwen3.6-plus、kimi-k2.6
|
Agent モードでは、品質とコストのバランスから以下のモデルをおすすめします: deepseek-v4-flash、MiniMax-M2.7、claude-sonnet-4-6、gemini-3.1-pro-preview、glm-5.1、qwen3.6-plus、kimi-k2.6
|
||||||
</Note>
|
</Note>
|
||||||
|
|
||||||
## 設定
|
## 設定
|
||||||
@@ -18,12 +18,12 @@ CowAgentは国内外の主要なLLMをサポートしています。モデルイ
|
|||||||
## サポートモデル
|
## サポートモデル
|
||||||
|
|
||||||
<CardGroup cols={2}>
|
<CardGroup cols={2}>
|
||||||
|
<Card title="DeepSeek" href="/ja/models/deepseek">
|
||||||
|
deepseek-v4-flash、deepseek-v4-pro など
|
||||||
|
</Card>
|
||||||
<Card title="MiniMax" href="/ja/models/minimax">
|
<Card title="MiniMax" href="/ja/models/minimax">
|
||||||
MiniMax-M2.7およびその他のシリーズモデル
|
MiniMax-M2.7およびその他のシリーズモデル
|
||||||
</Card>
|
</Card>
|
||||||
<Card title="DeepSeek" href="/ja/models/deepseek">
|
|
||||||
deepseek-v4-pro、deepseek-v4-flash、deepseek-chat、deepseek-reasoner
|
|
||||||
</Card>
|
|
||||||
<Card title="Claude" href="/ja/models/claude">
|
<Card title="Claude" href="/ja/models/claude">
|
||||||
claude-sonnet-4-6など
|
claude-sonnet-4-6など
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: LinkAI
|
|||||||
description: LinkAIプラットフォームで複数モデルに統合アクセス
|
description: LinkAIプラットフォームで複数モデルに統合アクセス
|
||||||
---
|
---
|
||||||
|
|
||||||
[LinkAI](https://link-ai.tech)プラットフォームでは、OpenAI、Claude、Gemini、DeepSeek、Qwen、Kimiなどのモデルを柔軟に切り替えることができ、ナレッジベース、ワークフロー、プラグイン、その他のAgent機能をサポートしています。
|
[LinkAI](https://link-ai.tech)プラットフォームでは、OpenAI、Claude、Gemini、DeepSeek、MiniMax、Qwen、Kimiなどのモデルを柔軟に切り替えることができ、ナレッジベース、ワークフロー、プラグイン、その他のAgent機能をサポートしています。
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,14 +7,14 @@ description: DeepSeek 模型配置
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"model": "deepseek-v4-pro",
|
"model": "deepseek-v4-flash",
|
||||||
"deepseek_api_key": "YOUR_API_KEY"
|
"deepseek_api_key": "YOUR_API_KEY"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
| 参数 | 说明 |
|
| 参数 | 说明 |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `model` | 支持 `deepseek-v4-pro`、`deepseek-v4-flash` |
|
| `model` | 支持 `deepseek-v4-flash`(默认)、`deepseek-v4-pro` |
|
||||||
| `deepseek_api_key` | 在 [DeepSeek 平台](https://platform.deepseek.com/api_keys) 创建 |
|
| `deepseek_api_key` | 在 [DeepSeek 平台](https://platform.deepseek.com/api_keys) 创建 |
|
||||||
| `deepseek_api_base` | 可选,默认为 `https://api.deepseek.com/v1`,可修改为第三方代理地址 |
|
| `deepseek_api_base` | 可选,默认为 `https://api.deepseek.com/v1`,可修改为第三方代理地址 |
|
||||||
|
|
||||||
@@ -22,12 +22,12 @@ description: DeepSeek 模型配置
|
|||||||
|
|
||||||
| 模型 | 适用场景 |
|
| 模型 | 适用场景 |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `deepseek-v4-pro` | 复杂任务效果最佳 |
|
| `deepseek-v4-flash` | 默认推荐,速度快、成本低 |
|
||||||
| `deepseek-v4-flash` | 速度更快、成本更低 |
|
| `deepseek-v4-pro` | 更智能、复杂任务效果更强 |
|
||||||
|
|
||||||
## 思考模式
|
## 思考模式
|
||||||
|
|
||||||
V4 系列(`deepseek-v4-pro` / `deepseek-v4-flash`)支持显式的"思考模式":模型在输出最终回答前,先输出一段思维链(`reasoning_content`),从而提升答案质量。
|
V4 系列(`deepseek-v4-flash` / `deepseek-v4-pro`)支持显式的"思考模式":模型在输出最终回答前,先输出一段思维链(`reasoning_content`),从而提升答案质量。
|
||||||
|
|
||||||
### 开关
|
### 开关
|
||||||
|
|
||||||
@@ -48,14 +48,14 @@ V4 系列(`deepseek-v4-pro` / `deepseek-v4-flash`)支持显式的"思考模
|
|||||||
- **多轮工具调用**:当历史中包含工具调用时,DeepSeek 要求所有 assistant 消息必须回传 `reasoning_content`。CowAgent 会自动处理回传逻辑,跨轮次切换思考开关也不会出错。
|
- **多轮工具调用**:当历史中包含工具调用时,DeepSeek 要求所有 assistant 消息必须回传 `reasoning_content`。CowAgent 会自动处理回传逻辑,跨轮次切换思考开关也不会出错。
|
||||||
|
|
||||||
<Tip>
|
<Tip>
|
||||||
复杂任务推荐使用 `deepseek-v4-pro`,低延迟和低成本需求可选 `deepseek-v4-flash`,需要深度思考可开启 `enable_thinking`。
|
默认使用 `deepseek-v4-flash`;复杂任务可使用 `deepseek-v4-pro`;需要深度思考可开启 `enable_thinking`。
|
||||||
</Tip>
|
</Tip>
|
||||||
|
|
||||||
方式二:OpenAI 兼容方式接入:
|
方式二:OpenAI 兼容方式接入:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"model": "deepseek-v4-pro",
|
"model": "deepseek-v4-flash",
|
||||||
"bot_type": "openai",
|
"bot_type": "openai",
|
||||||
"open_ai_api_key": "YOUR_API_KEY",
|
"open_ai_api_key": "YOUR_API_KEY",
|
||||||
"open_ai_api_base": "https://api.deepseek.com/v1"
|
"open_ai_api_base": "https://api.deepseek.com/v1"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ description: CowAgent 支持的模型及推荐选择
|
|||||||
CowAgent 支持国内外主流厂商的大语言模型,模型接口实现在项目的 `models/` 目录下。
|
CowAgent 支持国内外主流厂商的大语言模型,模型接口实现在项目的 `models/` 目录下。
|
||||||
|
|
||||||
<Note>
|
<Note>
|
||||||
Agent 模式下推荐使用以下模型,可根据效果及成本综合选择:MiniMax-M2.7、deepseek-v4-pro、claude-sonnet-4-6、gemini-3.1-pro-preview、glm-5.1、qwen3.6-plus、kimi-k2.6
|
Agent 模式下推荐使用以下模型,可根据效果及成本综合选择:deepseek-v4-flash、MiniMax-M2.7、claude-sonnet-4-6、gemini-3.1-pro-preview、glm-5.1、qwen3.6-plus、kimi-k2.6
|
||||||
|
|
||||||
同时支持使用 [LinkAI](https://link-ai.tech) 平台接口,可灵活切换多种模型,并支持知识库、工作流、插件等 Agent 能力。
|
同时支持使用 [LinkAI](https://link-ai.tech) 平台接口,可灵活切换多种模型,并支持知识库、工作流、插件等 Agent 能力。
|
||||||
</Note>
|
</Note>
|
||||||
@@ -23,12 +23,12 @@ CowAgent 支持国内外主流厂商的大语言模型,模型接口实现在
|
|||||||
## 支持的模型
|
## 支持的模型
|
||||||
|
|
||||||
<CardGroup cols={2}>
|
<CardGroup cols={2}>
|
||||||
|
<Card title="DeepSeek" href="/models/deepseek">
|
||||||
|
deepseek-v4-flash、deepseek-v4-pro 等
|
||||||
|
</Card>
|
||||||
<Card title="MiniMax" href="/models/minimax">
|
<Card title="MiniMax" href="/models/minimax">
|
||||||
MiniMax-M2.7 等系列模型
|
MiniMax-M2.7 等系列模型
|
||||||
</Card>
|
</Card>
|
||||||
<Card title="DeepSeek" href="/models/deepseek">
|
|
||||||
deepseek-v4-pro、deepseek-v4-flash、deepseek-chat、deepseek-reasoner
|
|
||||||
</Card>
|
|
||||||
<Card title="Claude" href="/models/claude">
|
<Card title="Claude" href="/models/claude">
|
||||||
claude-sonnet-4-6 等
|
claude-sonnet-4-6 等
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: LinkAI
|
|||||||
description: 通过 LinkAI 平台统一接入多种模型
|
description: 通过 LinkAI 平台统一接入多种模型
|
||||||
---
|
---
|
||||||
|
|
||||||
通过 [LinkAI](https://link-ai.tech) 平台可灵活切换 OpenAI、Claude、Gemini、DeepSeek、Qwen、Kimi 等多种模型,并支持知识库、工作流、插件等 Agent 能力。
|
通过 [LinkAI](https://link-ai.tech) 平台可灵活切换 OpenAI、Claude、Gemini、DeepSeek、MiniMax、Qwen、Kimi 等多种模型,并支持知识库、工作流、插件等 Agent 能力。
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ Supported models:
|
|||||||
- deepseek-chat (V3, no thinking)
|
- deepseek-chat (V3, no thinking)
|
||||||
- deepseek-reasoner (R1, built-in reasoning, no `thinking` switch)
|
- deepseek-reasoner (R1, built-in reasoning, no `thinking` switch)
|
||||||
- deepseek-v4-flash (V4, supports thinking mode + tool calls)
|
- deepseek-v4-flash (V4, supports thinking mode + tool calls)
|
||||||
- deepseek-v4-pro (V4, supports thinking mode + tool calls, agent recommended)
|
- deepseek-v4-flash (V4 Flash, default; thinking mode + tool calls)
|
||||||
|
- deepseek-v4-pro (V4 Pro, stronger on complex tasks)
|
||||||
|
|
||||||
Thinking mode notes (for V4 models):
|
Thinking mode notes (for V4 models):
|
||||||
- Toggle: ``{"thinking": {"type": "enabled" | "disabled"}}`` (default: enabled)
|
- Toggle: ``{"thinking": {"type": "enabled" | "disabled"}}`` (default: enabled)
|
||||||
@@ -42,9 +43,9 @@ class DeepSeekBot(Bot, OpenAICompatibleBot):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
self.sessions = SessionManager(
|
self.sessions = SessionManager(
|
||||||
DeepSeekSession,
|
DeepSeekSession,
|
||||||
model=conf().get("model") or const.DEEPSEEK_V4_PRO,
|
model=conf().get("model") or const.DEEPSEEK_V4_FLASH,
|
||||||
)
|
)
|
||||||
conf_model = conf().get("model") or const.DEEPSEEK_V4_PRO
|
conf_model = conf().get("model") or const.DEEPSEEK_V4_FLASH
|
||||||
self.args = {
|
self.args = {
|
||||||
"model": conf_model,
|
"model": conf_model,
|
||||||
"temperature": conf().get("temperature", 0.7),
|
"temperature": conf().get("temperature", 0.7),
|
||||||
@@ -73,7 +74,7 @@ class DeepSeekBot(Bot, OpenAICompatibleBot):
|
|||||||
return {
|
return {
|
||||||
"api_key": self.api_key,
|
"api_key": self.api_key,
|
||||||
"api_base": self.api_base,
|
"api_base": self.api_base,
|
||||||
"model": conf().get("model", const.DEEPSEEK_V4_PRO),
|
"model": conf().get("model", const.DEEPSEEK_V4_FLASH),
|
||||||
"default_temperature": conf().get("temperature", 0.7),
|
"default_temperature": conf().get("temperature", 0.7),
|
||||||
"default_top_p": conf().get("top_p", 1.0),
|
"default_top_p": conf().get("top_p", 1.0),
|
||||||
"default_frequency_penalty": conf().get("frequency_penalty", 0.0),
|
"default_frequency_penalty": conf().get("frequency_penalty", 0.0),
|
||||||
@@ -641,7 +642,7 @@ class DeepSeekBot(Bot, OpenAICompatibleBot):
|
|||||||
max_tokens: int = 1000) -> dict:
|
max_tokens: int = 1000) -> dict:
|
||||||
"""Analyse an image via DeepSeek's OpenAI-compatible /chat/completions endpoint."""
|
"""Analyse an image via DeepSeek's OpenAI-compatible /chat/completions endpoint."""
|
||||||
try:
|
try:
|
||||||
vision_model = model or self.args.get("model", const.DEEPSEEK_V4_PRO)
|
vision_model = model or self.args.get("model", const.DEEPSEEK_V4_FLASH)
|
||||||
payload = {
|
payload = {
|
||||||
"model": vision_model,
|
"model": vision_model,
|
||||||
"max_tokens": max_tokens,
|
"max_tokens": max_tokens,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from common.log import logger
|
|||||||
|
|
||||||
|
|
||||||
class DeepSeekSession(Session):
|
class DeepSeekSession(Session):
|
||||||
def __init__(self, session_id, system_prompt=None, model="deepseek-v4-pro"):
|
def __init__(self, session_id, system_prompt=None, model="deepseek-v4-flash"):
|
||||||
super().__init__(session_id, system_prompt)
|
super().__init__(session_id, system_prompt)
|
||||||
self.model = model
|
self.model = model
|
||||||
self.reset()
|
self.reset()
|
||||||
|
|||||||
14
run.sh
14
run.sh
@@ -309,8 +309,8 @@ select_model() {
|
|||||||
echo -e "${CYAN}${BOLD}=========================================${NC}"
|
echo -e "${CYAN}${BOLD}=========================================${NC}"
|
||||||
echo -e "${CYAN}${BOLD} Select AI Model${NC}"
|
echo -e "${CYAN}${BOLD} Select AI Model${NC}"
|
||||||
echo -e "${CYAN}${BOLD}=========================================${NC}"
|
echo -e "${CYAN}${BOLD}=========================================${NC}"
|
||||||
echo -e "${YELLOW}1) MiniMax (MiniMax-M2.7, MiniMax-M2.5, etc.)${NC}"
|
echo -e "${YELLOW}1) DeepSeek (deepseek-v4-flash, deepseek-v4-pro, etc.)${NC}"
|
||||||
echo -e "${YELLOW}2) DeepSeek (deepseek-v4-pro, deepseek-v4-flash, etc.)${NC}"
|
echo -e "${YELLOW}2) MiniMax (MiniMax-M2.7, MiniMax-M2.5, etc.)${NC}"
|
||||||
echo -e "${YELLOW}3) Claude (claude-sonnet-4-6, claude-opus-4-7, claude-opus-4-6, etc.)${NC}"
|
echo -e "${YELLOW}3) Claude (claude-sonnet-4-6, claude-opus-4-7, claude-opus-4-6, etc.)${NC}"
|
||||||
echo -e "${YELLOW}4) Gemini (gemini-3.1-flash-lite-preview, gemini-3.1-pro-preview, etc.)${NC}"
|
echo -e "${YELLOW}4) Gemini (gemini-3.1-flash-lite-preview, gemini-3.1-pro-preview, etc.)${NC}"
|
||||||
echo -e "${YELLOW}5) OpenAI GPT (gpt-5.4, gpt-5.2, gpt-4.1, etc.)${NC}"
|
echo -e "${YELLOW}5) OpenAI GPT (gpt-5.4, gpt-5.2, gpt-4.1, etc.)${NC}"
|
||||||
@@ -322,7 +322,7 @@ select_model() {
|
|||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
read -p "Enter your choice [press Enter for default: 1 - MiniMax]: " model_choice
|
read -p "Enter your choice [press Enter for default: 1 - DeepSeek]: " model_choice
|
||||||
model_choice=${model_choice:-1}
|
model_choice=${model_choice:-1}
|
||||||
case "$model_choice" in
|
case "$model_choice" in
|
||||||
1|2|3|4|5|6|7|8|9|10)
|
1|2|3|4|5|6|7|8|9|10)
|
||||||
@@ -357,11 +357,11 @@ read_api_base() {
|
|||||||
# Configure model
|
# Configure model
|
||||||
configure_model() {
|
configure_model() {
|
||||||
case "$model_choice" in
|
case "$model_choice" in
|
||||||
1) read_model_config "MiniMax" "MiniMax-M2.7" "MINIMAX_KEY" ;;
|
1)
|
||||||
2)
|
read_model_config "DeepSeek" "deepseek-v4-flash" "DEEPSEEK_KEY"
|
||||||
read_model_config "DeepSeek" "deepseek-v4-pro" "DEEPSEEK_KEY"
|
|
||||||
read_api_base "DEEPSEEK_BASE" "https://api.deepseek.com/v1"
|
read_api_base "DEEPSEEK_BASE" "https://api.deepseek.com/v1"
|
||||||
;;
|
;;
|
||||||
|
2) read_model_config "MiniMax" "MiniMax-M2.7" "MINIMAX_KEY" ;;
|
||||||
3)
|
3)
|
||||||
read_model_config "Claude" "claude-sonnet-4-6" "CLAUDE_KEY"
|
read_model_config "Claude" "claude-sonnet-4-6" "CLAUDE_KEY"
|
||||||
read_api_base "CLAUDE_BASE" "https://api.anthropic.com/v1"
|
read_api_base "CLAUDE_BASE" "https://api.anthropic.com/v1"
|
||||||
@@ -379,7 +379,7 @@ configure_model() {
|
|||||||
8) read_model_config "Doubao (Volcengine Ark)" "doubao-seed-2-0-code-preview-260215" "ARK_KEY" ;;
|
8) read_model_config "Doubao (Volcengine Ark)" "doubao-seed-2-0-code-preview-260215" "ARK_KEY" ;;
|
||||||
9) read_model_config "Kimi (Moonshot)" "kimi-k2.6" "MOONSHOT_KEY" ;;
|
9) read_model_config "Kimi (Moonshot)" "kimi-k2.6" "MOONSHOT_KEY" ;;
|
||||||
10)
|
10)
|
||||||
read_model_config "LinkAI" "MiniMax-M2.7" "LINKAI_KEY"
|
read_model_config "LinkAI" "deepseek-v4-flash" "LINKAI_KEY"
|
||||||
USE_LINKAI="true"
|
USE_LINKAI="true"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -169,36 +169,38 @@ function Install-Dependencies {
|
|||||||
|
|
||||||
# ── model selection ──────────────────────────────────────────────
|
# ── model selection ──────────────────────────────────────────────
|
||||||
$ModelChoices = @{
|
$ModelChoices = @{
|
||||||
"1" = @{ Provider = "MiniMax"; Default = "MiniMax-M2.7"; Key = "MINIMAX_KEY" }
|
"1" = @{ Provider = "DeepSeek"; Default = "deepseek-v4-flash"; Key = "DEEPSEEK_KEY"; Base = "https://api.deepseek.com/v1" }
|
||||||
"2" = @{ Provider = "Zhipu AI"; Default = "glm-5.1"; Key = "ZHIPU_KEY" }
|
"2" = @{ Provider = "MiniMax"; Default = "MiniMax-M2.7"; Key = "MINIMAX_KEY" }
|
||||||
"3" = @{ Provider = "Kimi (Moonshot)"; Default = "kimi-k2.6"; Key = "MOONSHOT_KEY" }
|
"3" = @{ Provider = "Zhipu AI"; Default = "glm-5.1"; Key = "ZHIPU_KEY" }
|
||||||
"4" = @{ Provider = "Doubao (Volcengine Ark)"; Default = "doubao-seed-2-0-code-preview-260215"; Key = "ARK_KEY" }
|
"4" = @{ Provider = "Kimi (Moonshot)"; Default = "kimi-k2.6"; Key = "MOONSHOT_KEY" }
|
||||||
"5" = @{ Provider = "Qwen (DashScope)"; Default = "qwen3.6-plus"; Key = "DASHSCOPE_KEY" }
|
"5" = @{ Provider = "Doubao (Volcengine Ark)"; Default = "doubao-seed-2-0-code-preview-260215"; Key = "ARK_KEY" }
|
||||||
"6" = @{ Provider = "Claude"; Default = "claude-sonnet-4-6"; Key = "CLAUDE_KEY"; Base = "https://api.anthropic.com/v1" }
|
"6" = @{ Provider = "Qwen (DashScope)"; Default = "qwen3.6-plus"; Key = "DASHSCOPE_KEY" }
|
||||||
"7" = @{ Provider = "Gemini"; Default = "gemini-3.1-pro-preview"; Key = "GEMINI_KEY"; Base = "https://generativelanguage.googleapis.com" }
|
"7" = @{ Provider = "Claude"; Default = "claude-sonnet-4-6"; Key = "CLAUDE_KEY"; Base = "https://api.anthropic.com/v1" }
|
||||||
"8" = @{ Provider = "OpenAI GPT"; Default = "gpt-5.4"; Key = "OPENAI_KEY"; Base = "https://api.openai.com/v1" }
|
"8" = @{ Provider = "Gemini"; Default = "gemini-3.1-pro-preview"; Key = "GEMINI_KEY"; Base = "https://generativelanguage.googleapis.com" }
|
||||||
"9" = @{ Provider = "LinkAI"; Default = "MiniMax-M2.7"; Key = "LINKAI_KEY" }
|
"9" = @{ Provider = "OpenAI GPT"; Default = "gpt-5.4"; Key = "OPENAI_KEY"; Base = "https://api.openai.com/v1" }
|
||||||
|
"10" = @{ Provider = "LinkAI"; Default = "deepseek-v4-flash"; Key = "LINKAI_KEY" }
|
||||||
}
|
}
|
||||||
|
|
||||||
function Select-Model {
|
function Select-Model {
|
||||||
Write-Info "========================================="
|
Write-Info "========================================="
|
||||||
Write-Info " Select AI Model"
|
Write-Info " Select AI Model"
|
||||||
Write-Info "========================================="
|
Write-Info "========================================="
|
||||||
Write-Host "1) MiniMax (MiniMax-M2.7, MiniMax-M2.5, etc.)"
|
Write-Host "1) DeepSeek (deepseek-v4-flash, deepseek-v4-pro, etc.)"
|
||||||
Write-Host "2) Zhipu AI (glm-5.1, glm-5-turbo, glm-5, etc.)"
|
Write-Host "2) MiniMax (MiniMax-M2.7, MiniMax-M2.5, etc.)"
|
||||||
Write-Host "3) Kimi (kimi-k2.6, kimi-k2.5, kimi-k2, etc.)"
|
Write-Host "3) Zhipu AI (glm-5.1, glm-5-turbo, glm-5, etc.)"
|
||||||
Write-Host "4) Doubao (doubao-seed-2-0-code-preview-260215, etc.)"
|
Write-Host "4) Kimi (kimi-k2.6, kimi-k2.5, kimi-k2, etc.)"
|
||||||
Write-Host "5) Qwen (qwen3.6-plus, qwen3.5-plus, qwen3-max, qwq-plus, etc.)"
|
Write-Host "5) Doubao (doubao-seed-2-0-code-preview-260215, etc.)"
|
||||||
Write-Host "6) Claude (claude-sonnet-4-6, claude-opus-4-6, etc.)"
|
Write-Host "6) Qwen (qwen3.6-plus, qwen3.5-plus, qwen3-max, qwq-plus, etc.)"
|
||||||
Write-Host "7) Gemini (gemini-3.1-flash-lite-preview, gemini-3.1-pro-preview, etc.)"
|
Write-Host "7) Claude (claude-sonnet-4-6, claude-opus-4-6, etc.)"
|
||||||
Write-Host "8) OpenAI GPT (gpt-5.4, gpt-5.2, gpt-4.1, etc.)"
|
Write-Host "8) Gemini (gemini-3.1-flash-lite-preview, gemini-3.1-pro-preview, etc.)"
|
||||||
Write-Host "9) LinkAI (access multiple models via one API)"
|
Write-Host "9) OpenAI GPT (gpt-5.4, gpt-5.2, gpt-4.1, etc.)"
|
||||||
|
Write-Host "10) LinkAI (access multiple models via one API)"
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
|
|
||||||
do {
|
do {
|
||||||
$choice = Read-Host "Enter your choice [default: 1 - MiniMax]"
|
$choice = Read-Host "Enter your choice [default: 1 - DeepSeek]"
|
||||||
if (-not $choice) { $choice = "1" }
|
if (-not $choice) { $choice = "1" }
|
||||||
} while ($choice -notmatch '^[1-9]$')
|
} while ($choice -notmatch '^([1-9]|10)$')
|
||||||
|
|
||||||
$m = $ModelChoices[$choice]
|
$m = $ModelChoices[$choice]
|
||||||
Write-Cow "Configuring $($m.Provider)..."
|
Write-Cow "Configuring $($m.Provider)..."
|
||||||
@@ -208,7 +210,7 @@ function Select-Model {
|
|||||||
if (-not $model) { $model = $m.Default }
|
if (-not $model) { $model = $m.Default }
|
||||||
$script:ModelName = $model
|
$script:ModelName = $model
|
||||||
$script:KeyName = $m.Key
|
$script:KeyName = $m.Key
|
||||||
$script:UseLinkai = ($choice -eq "9")
|
$script:UseLinkai = ($choice -eq "10")
|
||||||
|
|
||||||
if ($m.Base) {
|
if ($m.Base) {
|
||||||
$base = Read-Host "Enter API Base URL [default: $($m.Base)]"
|
$base = Read-Host "Enter API Base URL [default: $($m.Base)]"
|
||||||
@@ -302,6 +304,8 @@ function New-ConfigFile {
|
|||||||
ark_api_key = ""
|
ark_api_key = ""
|
||||||
dashscope_api_key = ""
|
dashscope_api_key = ""
|
||||||
minimax_api_key = ""
|
minimax_api_key = ""
|
||||||
|
deepseek_api_key = ""
|
||||||
|
deepseek_api_base = "https://api.deepseek.com/v1"
|
||||||
voice_to_text = "openai"
|
voice_to_text = "openai"
|
||||||
text_to_voice = "openai"
|
text_to_voice = "openai"
|
||||||
voice_reply_voice = $false
|
voice_reply_voice = $false
|
||||||
@@ -326,6 +330,7 @@ function New-ConfigFile {
|
|||||||
ARK_KEY = "ark_api_key"
|
ARK_KEY = "ark_api_key"
|
||||||
DASHSCOPE_KEY = "dashscope_api_key"
|
DASHSCOPE_KEY = "dashscope_api_key"
|
||||||
MINIMAX_KEY = "minimax_api_key"
|
MINIMAX_KEY = "minimax_api_key"
|
||||||
|
DEEPSEEK_KEY = "deepseek_api_key"
|
||||||
LINKAI_KEY = "linkai_api_key"
|
LINKAI_KEY = "linkai_api_key"
|
||||||
}
|
}
|
||||||
if ($keyMap.ContainsKey($KeyName)) {
|
if ($keyMap.ContainsKey($KeyName)) {
|
||||||
@@ -334,9 +339,10 @@ function New-ConfigFile {
|
|||||||
|
|
||||||
# Set API base if provided
|
# Set API base if provided
|
||||||
$baseMap = @{
|
$baseMap = @{
|
||||||
"6" = "claude_api_base"
|
"1" = "deepseek_api_base"
|
||||||
"7" = "gemini_api_base"
|
"7" = "claude_api_base"
|
||||||
"8" = "open_ai_api_base"
|
"8" = "gemini_api_base"
|
||||||
|
"9" = "open_ai_api_base"
|
||||||
}
|
}
|
||||||
if ($ApiBase -and $baseMap.ContainsKey($ModelChoice)) {
|
if ($ApiBase -and $baseMap.ContainsKey($ModelChoice)) {
|
||||||
$config[$baseMap[$ModelChoice]] = $ApiBase
|
$config[$baseMap[$ModelChoice]] = $ApiBase
|
||||||
|
|||||||
Reference in New Issue
Block a user