From 26e630c2dd32ef45f8cca71934bd61fb1b6a5582 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Fri, 17 Apr 2026 16:09:43 +0800 Subject: [PATCH] feat(cli): /config support set enable_thinking --- docs/cli/general.mdx | 1 + docs/en/cli/general.mdx | 1 + docs/ja/cli/general.mdx | 1 + docs/models/custom.mdx | 4 ++-- plugins/cow_cli/cow_cli.py | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/cli/general.mdx b/docs/cli/general.mdx index 8ab9fb75..62d69ad2 100644 --- a/docs/cli/general.mdx +++ b/docs/cli/general.mdx @@ -69,6 +69,7 @@ Session: 12 messages | 8 skills loaded | `agent_max_context_tokens` | 最大上下文 tokens | `40000` | | `agent_max_context_turns` | 最大上下文记忆轮次 | `30` | | `agent_max_steps` | 单次任务最大决策步数 | `15` | +| `enable_thinking` | 是否启用深度思考 | `true` / `false` | 修改 `model` 时,系统会自动匹配对应的模型调用方式。配置会写入 `config.json` 并持久保存。 diff --git a/docs/en/cli/general.mdx b/docs/en/cli/general.mdx index 186f51a9..3f55425e 100644 --- a/docs/en/cli/general.mdx +++ b/docs/en/cli/general.mdx @@ -55,6 +55,7 @@ View or modify runtime configuration. Changes take effect immediately without re | `agent_max_context_tokens` | Max context tokens | `40000` | | `agent_max_context_turns` | Max context memory turns | `30` | | `agent_max_steps` | Max decision steps per task | `15` | +| `enable_thinking` | Enable deep thinking | `true` / `false` | When changing `model`, the system automatically matches the corresponding model API. Configuration is persisted to `config.json`. diff --git a/docs/ja/cli/general.mdx b/docs/ja/cli/general.mdx index ede186c5..d65c3464 100644 --- a/docs/ja/cli/general.mdx +++ b/docs/ja/cli/general.mdx @@ -55,6 +55,7 @@ description: ステータスの確認、設定管理、コンテキスト制御 | `agent_max_context_tokens` | 最大コンテキストトークン数 | `40000` | | `agent_max_context_turns` | 最大コンテキスト記憶ターン数 | `30` | | `agent_max_steps` | タスクごとの最大判断ステップ数 | `15` | +| `enable_thinking` | ディープシンキングの有効化 | `true` / `false` | `model` を変更すると、システムが対応するモデル API を自動的にマッチングします。設定は `config.json` に永続的に保存されます。 diff --git a/docs/models/custom.mdx b/docs/models/custom.mdx index d69b9628..907dbac3 100644 --- a/docs/models/custom.mdx +++ b/docs/models/custom.mdx @@ -20,7 +20,7 @@ description: 自定义厂商配置,适用于第三方 API 代理和本地模 ```json { "bot_type": "custom", - "model": "deepseek-chat", + "model": "", "custom_api_key": "YOUR_API_KEY", "custom_api_base": "https://{your-proxy.com}/v1" } @@ -29,7 +29,7 @@ description: 自定义厂商配置,适用于第三方 API 代理和本地模 | 参数 | 说明 | | --- | --- | | `bot_type` | 必须设为 `custom` | -| `model` | 模型名称,可填写代理服务支持的任意模型名 | +| `model` | 模型名称,填写代理服务支持的任意模型名 | | `custom_api_key` | API 密钥,由代理服务提供 | | `custom_api_base` | API 地址,由代理服务提供,需兼容 OpenAI 协议 | diff --git a/plugins/cow_cli/cow_cli.py b/plugins/cow_cli/cow_cli.py index 92e9db8f..b7c97d46 100644 --- a/plugins/cow_cli/cow_cli.py +++ b/plugins/cow_cli/cow_cli.py @@ -316,6 +316,7 @@ class CowCliPlugin(Plugin): "agent_max_context_turns", "agent_max_steps", "knowledge", + "enable_thinking", } _CONFIG_READABLE = _CONFIG_WRITABLE | {"channel_type"}