@fonlan/dsh-model-parameters 0.1.0 → 0.1.2

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.
package/README.en.md CHANGED
@@ -68,18 +68,20 @@ Models with no catalog match (e.g. a local gateway model like
68
68
  `ttlDays` (default **7 days**).
69
69
  - A failed fetch keeps the last good cache; with no cache at all the plugin
70
70
  simply fills nothing until a refresh succeeds.
71
- - The settings page has an **Update catalog & fill now** button for a forced
71
+ - The settings card has an **Update catalog & fill now** button for a forced
72
72
  refresh, and shows the last update time and freshness.
73
73
 
74
- ## Settings page
74
+ ## Settings card
75
75
 
76
- A "模型参数补全 / Model Parameters" section appears in DSH settings:
76
+ An expandable "模型参数补全 / Model Parameters" card appears in DSH
77
+ settings → **Plugins → Plugin configuration** (styled like the built-in plugin
78
+ cards, collapsed by default):
77
79
 
78
80
  - master enable switch plus per-field toggles (`fillName`, `fillContext`,
79
81
  `fillMaxTokens`, `fillReasoning`, `fillInput`);
80
82
  - catalog TTL in days;
81
83
  - optional `provider → models.dev provider` mapping overrides;
82
- - catalog freshness card (entries, providers, last update);
84
+ - catalog freshness (entries, providers, last update);
83
85
  - the last fill report: fields filled, providers touched, and the list of
84
86
  unmatched model ids.
85
87
 
package/README.md CHANGED
@@ -44,16 +44,16 @@ models.dev 把同一模型挂在许多 provider 名下(`deepseek-v4-flash` 出
44
44
  - 目录从 `https://models.dev/api.json` 拉取,缓存在 `~/.dsh/model-parameters/catalog.json`(约 4 MB)。
45
45
  - 缓存超过 `ttlDays`(默认 **7 天**)后,在下一次 reconcile 时惰性刷新。
46
46
  - 拉取失败则保留上次成功的缓存;完全没有缓存时插件什么都不补,直到刷新成功。
47
- - 设置页有 **Update catalog & fill now** 按钮可强制刷新,并显示上次更新时间与新鲜度。
47
+ - 设置卡片有 **立即更新目录并补全** 按钮可强制刷新,并显示上次更新时间与新鲜度。
48
48
 
49
- ## 设置页面
49
+ ## 设置卡片
50
50
 
51
- DSH 设置中会出现一个 "模型参数补全 / Model Parameters" 区块:
51
+ 在 DSH 设置 → **插件 → 插件配置** 中会出现一张 "模型参数补全 / Model Parameters" 可展开卡片(样式与内置插件卡片一致,默认折叠):
52
52
 
53
53
  - 总开关 + 逐字段开关(`fillName`、`fillContext`、`fillMaxTokens`、`fillReasoning`、`fillInput`);
54
54
  - 目录 TTL(天);
55
55
  - 可选的 `provider → models.dev provider` 映射覆盖;
56
- - 目录新鲜度卡片(条目数、provider 数、上次更新);
56
+ - 目录新鲜度(条目数、provider 数、上次更新);
57
57
  - 上次补全报告:补全的字段、涉及的 provider、未匹配的模型 id 列表。
58
58
 
59
59
  插件配置保存在 `model-parameters` 设置命名空间(`~/.dsh/settings.yaml`),例如: