mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-17 17:13:25 +08:00
feat: add reasoning effort commands
This commit is contained in:
parent
36cbbe48e7
commit
9e39333ff6
24 changed files with 1346 additions and 240 deletions
|
|
@ -236,13 +236,12 @@ export default {
|
|||
'/unwatch ID 取消关注': '/unwatch ID Stop watching a session',
|
||||
'🤖 预设 / 模型': '🤖 Presets / models',
|
||||
'/models 列出模型': '/models List models',
|
||||
'/model 2 按序号切换模型': '/model 2 Switch model by index',
|
||||
'🎮 任务控制': '🎮 Task controls',
|
||||
'/steer 指令 给 Agent 补充指令': '/steer INSTRUCTION Steer the Agent',
|
||||
'**📋 卡片功能**\n\n1. 会话下拉 — 切换当前绑定会话\n2. 工作区下拉 — 切换工作区\n3. 🤖 预设下拉 — 切换 Agent 预设\n4. 🧠 模型下拉 — 切换模型\n5. 🆕 新会话 — 开启全新会话\n6. 📋 会话/关注 — 查看/绑定会话,管理关注\n7. ⏹ 停止 — 停止当前任务\n8. 📐 压缩 — 压缩当前会话上下文\n9. 补充指令 — 给 Agent 发送指令\n10. 🗄 归档切换 — 显示/隐藏归档会话\n11. 📊 状态 — 查看系统连接状态\n12. 📖 帮助 — 查看本帮助':
|
||||
'**📋 Card features**\n\n1. Session dropdown — switch the bound session\n2. Workspace dropdown — switch workspace\n3. 🤖 Preset dropdown — switch Agent Preset\n4. 🧠 Model dropdown — switch model\n5. 🆕 New session — start fresh\n6. 📋 Sessions/watches — view or bind sessions and manage watches\n7. ⏹ Stop — stop the current task\n8. 📐 Compact — compact the current session context\n9. Steer task — send an instruction to the Agent\n10. 🗄 Archived toggle — show or hide archived sessions\n11. 📊 Status — view connection status\n12. 📖 Help — view this help',
|
||||
'**⌨️ 文本命令**\n\n`/m` — 打开菜单卡片\n`/new` — 开启全新会话\n`/session ID` — 绑定已有会话\n`/sessionlist [工作区]` — 列出会话\n`/workspace 路径` — 切换工作区\n`/workspacelist` — 列出工作区\n`/status` — 查看连接状态\n`/compact` — 压缩上下文\n`/stop` — 停止当前任务\n`/steer 指令` — 补充指令\n`/watch ID` — 关注会话\n`/watchlist` — 关注列表\n`/unwatch ID` — 取消关注\n`/archived on/off` — 归档显隐\n`/presetlist` — 列出预设\n`/preset [序号/ID]` — 切换预设\n`/preset --default` — 跟随默认\n`/models` — 列出模型\n`/model 2` — 切换模型\n`/repair` — 修复卡片按钮':
|
||||
'**⌨️ Text commands**\n\n`/m` — open the menu card\n`/new` — start a new session\n`/session ID` — bind an existing session\n`/sessionlist [workspace]` — list sessions\n`/workspace PATH` — switch workspace\n`/workspacelist` — list workspaces\n`/status` — view connection status\n`/compact` — compact context\n`/stop` — stop the current task\n`/steer INSTRUCTION` — steer the task\n`/watch ID` — watch a session\n`/watchlist` — list watched sessions\n`/unwatch ID` — stop watching\n`/archived on/off` — show or hide archived sessions\n`/presetlist` — list presets\n`/preset [index/ID]` — switch preset\n`/preset --default` — follow default\n`/models` — list models\n`/model 2` — switch model\n`/repair` — repair card buttons',
|
||||
'**⌨️ 文本命令**\n\n`/m` — 打开菜单卡片\n`/new` — 开启全新会话\n`/session ID` — 绑定已有会话\n`/sessionlist [工作区]` — 列出会话\n`/workspace 路径` — 切换工作区\n`/workspacelist` — 列出工作区\n`/status` — 查看连接状态\n`/compact` — 压缩上下文\n`/stop` — 停止当前任务\n`/steer 指令` — 补充指令\n`/watch ID` — 关注会话\n`/watchlist` — 关注列表\n`/unwatch ID` — 取消关注\n`/archived on/off` — 归档显隐\n`/presetlist` — 列出预设\n`/preset [序号/ID]` — 切换预设\n`/preset --default` — 跟随默认\n`/models` — 列出模型\n`/reasoninglist` 或 `/reasonings` — 按序号列出当前模型可用推理等级\n`/reasoning [序号、等级ID或 --default]` — 查看或切换当前推理等级\n`/model [序号或完整模型ID] [推理等级ID]` — 查看或切换当前会话模型\n`/repair` — 修复卡片按钮':
|
||||
'**⌨️ Text commands**\n\n`/m` — open the menu card\n`/new` — start a new session\n`/session ID` — bind an existing session\n`/sessionlist [workspace]` — list sessions\n`/workspace PATH` — switch workspace\n`/workspacelist` — list workspaces\n`/status` — view connection status\n`/compact` — compact context\n`/stop` — stop the current task\n`/steer INSTRUCTION` — steer the task\n`/watch ID` — watch a session\n`/watchlist` — list watched sessions\n`/unwatch ID` — stop watching\n`/archived on/off` — show or hide archived sessions\n`/presetlist` — list presets\n`/preset [index/ID]` — switch preset\n`/preset --default` — follow default\n`/models` — list models\n`/reasoninglist` or `/reasonings` — list reasoning efforts for the current model\n`/reasoning [index, effort ID, or --default]` — show or switch reasoning effort\n`/model [index or full model ID] [reasoning effort ID]` — show or switch the current Session model\n`/repair` — repair card buttons',
|
||||
'**💡 数字兜底**\n回复数字快速操作:\n**1**工作区列表 · **2**新会话 · **3**会话/关注\n**4**状态 · **5**修复 · **6**帮助':
|
||||
'**💡 Number fallback**\nReply with a number for a quick action:\n**1** Workspace list · **2** New session · **3** Sessions/watches\n**4** Status · **5** Repair · **6** Help',
|
||||
'从下方下拉选择补充指令;最后一项可自定义输入。':
|
||||
|
|
|
|||
|
|
@ -50,9 +50,17 @@ export default {
|
|||
'/session Session ID 或当前工作区序号 将当前聊天绑定到指定会话':
|
||||
'/session <Session ID or workspace index> Bind this chat to the specified session',
|
||||
'/models 按序号列出所有可用模型': '/models List all available models by index',
|
||||
'/reasoninglist 或 /reasonings 按序号列出当前模型可用推理等级':
|
||||
'/reasoninglist or /reasonings List reasoning efforts for the current model by index',
|
||||
'/reasoning [序号、等级ID或 --default] 查看或切换当前推理等级':
|
||||
'/reasoning [index, effort ID, or --default] Show or switch the current reasoning effort',
|
||||
'/model [序号或完整模型ID] 查看或切换当前会话模型':
|
||||
'/model [index or full model ID] Show or switch the model of the current session',
|
||||
'/model [序号或完整模型ID] [推理等级ID] 查看或切换当前会话模型':
|
||||
'/model [index or full model ID] [reasoning effort ID] Show or switch the current Session model',
|
||||
'示例:先发 /models,再发 /model 2': 'Example: send /models first, then /model 2',
|
||||
'示例:先发 /models,再发 /model 2 [推理等级ID]':
|
||||
'Example: send /models first, then /model 2 [reasoning effort ID]',
|
||||
'/presetlist 按序号列出可用 Agent Preset': '/presetlist List available Agent Presets by index',
|
||||
'/preset [序号或完整ID] 查看或设置当前机器人 Agent Preset':
|
||||
'/preset [index or full ID] Show or set the Agent Preset of this bot',
|
||||
|
|
|
|||
|
|
@ -134,17 +134,39 @@ export default {
|
|||
|
||||
// model-command.mjs
|
||||
'用法:/model <序号> 或 /model <provider>/<model>': 'Usage: /model <index> or /model <provider>/<model>',
|
||||
'用法:/model <序号或 provider/model> [推理等级ID]':
|
||||
'Usage: /model <index or provider/model> [reasoning effort ID]',
|
||||
'用法:/models(不带参数)': 'Usage: /models (no arguments)',
|
||||
'用法:/reasoning [序号、等级ID或 --default]':
|
||||
'Usage: /reasoning [index, effort ID, or --default]',
|
||||
'用法:/reasoninglist 或 /reasonings(不带参数)':
|
||||
'Usage: /reasoninglist or /reasonings (no arguments)',
|
||||
'模型序号无效:{input}': 'Invalid model index: {input}',
|
||||
'请发送 /models 查看并输入有效的正整数序号。':
|
||||
'Please send /models to view the list and enter a valid positive integer index.',
|
||||
'推理等级序号无效:{input}': 'Invalid reasoning effort index: {input}',
|
||||
'请发送 /reasoninglist 查看并输入有效的正整数序号。':
|
||||
'Please send /reasoninglist and enter a valid positive integer index.',
|
||||
'可用模型:': 'Available models:',
|
||||
'可用推理等级:': 'Available reasoning efforts:',
|
||||
'可用推理等级:{efforts}': 'Available reasoning efforts: {efforts}',
|
||||
'当前没有可用模型。': 'No models are currently available.',
|
||||
'以下模型提供方暂时不可用:': 'The following model providers are temporarily unavailable:',
|
||||
'切换模型:/model <序号>': 'To switch models: /model <index>',
|
||||
'切换模型:/model <序号> [推理等级ID]':
|
||||
'Switch model: /model <index> [reasoning effort ID]',
|
||||
'当前模型:': 'Current model:',
|
||||
'当前推理等级:{effort}': 'Current reasoning effort: {effort}',
|
||||
'Default(由模型或 Provider 决定)': 'Default (determined by the model or Provider)',
|
||||
'(当前、默认)': ' (current, default)',
|
||||
'(默认)': ' (default)',
|
||||
'查看全部模型:/models': 'See all models: /models',
|
||||
'查看可用推理等级:/reasoninglist': 'See reasoning efforts: /reasoninglist',
|
||||
'切换推理等级:/reasoning <序号或等级ID>':
|
||||
'Switch reasoning effort: /reasoning <index or effort ID>',
|
||||
'恢复默认等级:/reasoning --default': 'Restore the default effort: /reasoning --default',
|
||||
'当前聊天还没有会话。': 'This chat has no Session yet.',
|
||||
'请先发送一条普通消息创建会话。': 'Send a regular message first to create a Session.',
|
||||
'查看模型:/models': 'View models: /models',
|
||||
'选择模型:/model <序号>': 'Select a model: /model <index>',
|
||||
'当前任务正在运行,请等待完成或先发送 /stop。':
|
||||
|
|
@ -153,22 +175,39 @@ export default {
|
|||
'The Session bound to this chat no longer exists; please try again.',
|
||||
'无法切换到该模型。模型当前不可用,或不支持当前会话中的图片。':
|
||||
'Cannot switch to that model. It is currently unavailable, or does not support the images in this Session.',
|
||||
'无法切换推理等级。当前模型或推理等级不可用。':
|
||||
'Cannot switch the reasoning effort. The current model or effort is unavailable.',
|
||||
'当前聊天绑定的会话已发生变化,请重试。':
|
||||
'The Session bound to this chat has changed; please try again.',
|
||||
'获取模型列表已取消。': 'Fetching the model list was cancelled.',
|
||||
'获取推理等级列表已取消。': 'Fetching the reasoning effort list was cancelled.',
|
||||
'模型切换已取消。': 'The model switch was cancelled.',
|
||||
'推理等级切换已取消。': 'The reasoning effort switch was cancelled.',
|
||||
'暂时无法获取模型列表,请稍后重试。':
|
||||
'Unable to get the model list right now; please try again later.',
|
||||
'暂时无法获取推理等级,请稍后重试。':
|
||||
'Unable to get reasoning efforts right now; please try again later.',
|
||||
'模型切换失败,请稍后重试。': 'Failed to switch the model; please try again later.',
|
||||
'推理等级切换失败,请稍后重试。':
|
||||
'Failed to switch the reasoning effort; please try again later.',
|
||||
'模型命令仅支持纯文字,请移除图片后重试。':
|
||||
'Model commands support text only; please remove images and try again.',
|
||||
'模型和推理等级命令仅支持纯文字,请移除图片后重试。':
|
||||
'Model and reasoning effort commands support text only; please remove images and try again.',
|
||||
'当前任务正在等待你的回答或审批。': 'The current task is waiting for your answer or approval.',
|
||||
'请先处理当前请求,或者发送 /stop 停止任务。':
|
||||
'Please handle the current request first, or send /stop to stop the task.',
|
||||
'没有找到模型:{model}': 'Model not found: {model}',
|
||||
'请发送 /models 查看可用模型。': 'Please send /models to view available models.',
|
||||
'模型不支持推理等级:{effort}': 'The model does not support reasoning effort: {effort}',
|
||||
'该模型不提供可切换的推理等级。':
|
||||
'This model does not provide switchable reasoning efforts.',
|
||||
'模型已切换为:\n{model}\n\n后续消息将使用该模型。':
|
||||
'Model switched to:\n{model}\n\nSubsequent messages will use this model.',
|
||||
'模型已切换为:\n{model}\n推理等级:{effort}\n\n后续消息将使用该模型和推理等级。':
|
||||
'Model switched to:\n{model}\nReasoning effort: {effort}\n\nSubsequent messages will use this model and reasoning effort.',
|
||||
'推理等级已切换为:\n{effort}\n\n当前模型:{model}\n后续消息将使用该推理等级。':
|
||||
'Reasoning effort switched to:\n{effort}\n\nCurrent model: {model}\nSubsequent messages will use this reasoning effort.',
|
||||
|
||||
// compact-command.mjs
|
||||
'用法:/compact(不带参数)': 'Usage: /compact (no arguments)',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue