dshbase

插件目录 / Developer / dsh-sampling-sliders

dsh-sampling-sliders

未验证 Semidia

✓ 持续维护 基于 5 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
语言
2026-08-15最近推送
跨平台平台

功能简介

DSH plugin: model sampling sliders (temperature/maxTokens) with hot & persist modes, for all providers

我们的评价
未验证 — 尚未实测

DSH plugin: model sampling sliders (temperature/maxTokens) with hot & persist modes, for all providers 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

dsh-sampling-sliders

模型采样参数滑杆 — DeepSeek Harness (DSH) 插件。输入栏「采样」按钮弹出面板,用 temperature / maxTokens 滑杆微调每次模型调用的采样参数,经 agent/request 钩子作用于所有 Provider(官方 DeepSeek 与第三方接入)。

Model sampling sliders for DeepSeek Harness: a "采样" button next to the model selector opens temperature / maxTokens sliders that tune every model call for all providers via the agent/request hook.

功能 / Features

  • 输入栏「采样」按钮(conversation.input.right),点击弹出面板。
  • temperature(0–2,步进 0.05)、maxTokens(512–32768,步进 256)滑杆,各带「覆盖」开关;不勾选 = 跟随模型默认。
  • 热调 / 持久化 两种模式:
    • 持久化:值写入 settings,长期生效(重启仍在)。
    • 热调:值本次运行生效,下次启动自动清除
  • 作用于所有 Provider(拦截发生在 Provider 路由之前)。

原理 / How it works

  • Hostsrc/index.ts):inject: ['settings'],注册 sampling-sliders settings 命名空间(schema:{ mode, temperature?, maxTokens? }),并监听 agent/request 瀑布事件:await next() 拿到机器本会使用的 LlmCallConfig,若命名空间里有数值就合并进返回的替换配置。启动时若发现残留的 mode: 'hot' 值会清空(热调语义)。
  • Clientdist/client.js):window.__ModuleLoader__.load({ id, factory }) 浏览器 bundle,经 connection.api.settings.describe/update/replace 读写命名空间,渲染按钮与弹层。

安装 / Install

Out-of-tree bundle(GitHub 直装,无需 npm 账号):

# 1. 构建
npm install && npm run build

# 2. 装进 profile(本地目录方式,或 pnpm add link:)
dsh plugin --profile web add link:D:/path/to/dsh-sampling-sliders

# 3. 组合挂载(两种任选其一)
#    a. 加入 profile package.json 的 dsh.profile.bundles(会应用本包 cordis.patch.yml 里的 insert 行)
#    b. 在 profile 的 cordis.patch.yml 里手动加:
#       - insert:
#           - id: sampling-sliders
#             name: dsh-sampling-sliders

# 4. 重启
dsh --profile web      # 或重启 web 服务

本包自带 dsh.client 元数据与 exports["./client"],客户端 bundle 随页面加载自动注入;无需 npm publish。

文件结构 / Files

dsh-sampling-sliders/
├── src/index.ts      # Host:settings 注册 + agent/request 拦截(TypeScript 源码)
├── dist/index.js     # Host 编译产物(tsc)
├── dist/client.js    # Client bundle(window.__ModuleLoader__.load 工厂脚本)
├── cordis.patch.yml  # bundle 补丁(挂载行)
├── package.json      # npm 包描述 + dsh.bundle / dsh.client 元数据
└── tsconfig.json

已知限制 / Limitations

  • 拦截器只在插件运行期间生效;值通过 settings 持久化,卸载插件后不再注入。
  • LlmCallConfig 抽象层只暴露 temperature / maxTokens / stop(无 top_p),故滑杆做这两个字段。

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-sampling-sliders」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:Semidia/dsh-sampling-sliders

Headless(CLI)profile:

dsh plugin --profile headless add github:Semidia/dsh-sampling-sliders

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-27
备注:验证: runtime-fail 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7795 个插件 →