sun04222/dsh-prompt-enhance ↗★ 0

dsh-prompt-enhance

提供提示词增强按钮及工具 适合需要将草稿快速润色为具体、清晰提示词的用户。

套件
dsh-prompt-enhance
相容性
待驗證
版本
1.1.0
授權
MIT
最近更新
2026年10月23日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sun04222/dsh-prompt-enhance

3.3 Web 通道(输入框按钮使用)

POST /prompt-enhance,content-type: application/json,请求体 { "text": string, "model"?: string },响应体就是 §3.2 的同一个信封(HTTP 200)。信任检查委派官方 connection.requestRejection,缺席或抛错一律 fail-closed;非 POST 返回 405,坏 JSON 返回 400。


7. 配置

cordis.patch.yml 的 config(全部可选):

- insert:
    - id: dsh-prompt-enhance
      name: 'dsh-prompt-enhance'
      config:
        provider: ''      # 默认模型 provider;空则用当前默认模型
        model: ''         # 默认模型 id;空则用当前默认模型
        timeoutMs: 60000  # 单次补全墙钟上限(毫秒)

路由优先级:工具参数 model > 配置 provider+model > 当前默认模型。