dsh-llama-cpp-sampling-params 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +5 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -28,7 +28,6 @@
28
28
  * is one dsh never sends, so there is no competing source.
29
29
  */
30
30
  import z from "@deepseek-ai/schemastery";
31
- import { settingsNamespace } from "@deepseek-ai/dsh-settings";
32
31
 
33
32
  const name = "sampling-params";
34
33
  const inject = ["settings"];
@@ -81,8 +80,11 @@ function apply(ctx, config = {}) {
81
80
  const log = ctx.logger("sampling-params");
82
81
 
83
82
  // Register the settings section live so role values can be edited without
84
- // a restart.
85
- const scope = ctx.settings.register(settingsNamespace("sampling-params"), Config, {
83
+ // a restart. NOTE: we pass the namespace as a plain string, not via
84
+ // `settingsNamespace()` from @deepseek-ai/dsh-settings — the export was
85
+ // added in 0.1.1 and is absent in some older/newer versions, so importing
86
+ // it directly breaks plugin load on those dsh builds.
87
+ const scope = ctx.settings.register("sampling-params", Config, {
86
88
  base: config,
87
89
  applies: "live",
88
90
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-llama-cpp-sampling-params",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "DSH plugin: inject per-model sampling parameters (top_p, top_k, min_p, repeat_penalty, presence_penalty, frequency_penalty) into every chat-completions request sent to a local llama.cpp / llama-server gateway.",
5
5
  "author": "devhang",
6
6
  "repository": {