dsh-model-think-level 1.1.2 → 1.1.4

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.
@@ -70,8 +70,15 @@ export interface CompatSuggestion {
70
70
  thinkingTokenBudgetField?: ThinkingTokenBudgetField;
71
71
  supportsThinkingTokenBudget?: boolean;
72
72
  vllmPriority?: number;
73
- supportsMaxOutputTokens?: boolean;
74
73
  }
74
+ /**
75
+ * Compat keys a kernel older than their introduction does not know, so an
76
+ * autofill patch carrying one is stripped before the downgrade retry.
77
+ *
78
+ * `supportsMaxOutputTokens` is RETIRED -- the row editor no longer offers the
79
+ * control -- but a profile written by an earlier version still carries the key,
80
+ * and that stored value rides an autofill patch, so it stays on this list.
81
+ */
75
82
  export declare const NEW_COMPAT_KEYS: readonly ["thinkingTokenBudgetField", "vllmPriority", "supportsMaxOutputTokens"];
76
83
  /** One knowledge-base entry: which model families it matches and what to declare. */
77
84
  export interface KnowledgeEntry {
@@ -207,9 +214,14 @@ export interface EffortSuggestion {
207
214
  * plus first-party GitHub cards (openai/gpt-oss, mistralai/mistral-common,
208
215
  * Tencent-Hunyuan/Hy3, MiniMax-AI/MiniMax-M3) -- cross-checked against the
209
216
  * public OpenRouter catalog (input_modalities, supported_parameters) where
210
- * noted. Capacities are REFERENCE values: aggregators disagree, so the note
211
- * says so where the spread is wide, and families whose numbers stay contested
212
- * simply carry none.
217
+ * noted. 2026-10 全面校准 pass: the whole table was re-checked against
218
+ * pi-ai 1.2.0's official model catalog, whose thinkingLevelMap semantics
219
+ * are adopted here -- a level PRESENT in the map is accepted (a null value
220
+ * means it dispatches via omit/budget/toggle channels, NOT an active
221
+ * disable for the openai/anthropic families), and a level ABSENT is
222
+ * refused and must not be declared. Capacities are REFERENCE values:
223
+ * aggregators disagree, so the note says so where the spread is wide, and
224
+ * families whose numbers stay contested simply carry none.
213
225
  */
214
226
  export declare const KNOWLEDGE_BASE: readonly KnowledgeEntry[];
215
227
  /**
@@ -235,7 +247,13 @@ export declare function matchKnowledgeBase(modelId: string, displayName?: string
235
247
  export declare function inferProtocol(route: RouteFacts): string;
236
248
  /** Whether a baseURL names a self-hosted endpoint (loopback, private LAN, .local, custom port). */
237
249
  export declare function isSelfHostedEndpoint(baseURL: string | undefined): boolean;
238
- /** Drop catalog-withheld keys pi-ai never accepts from a profile (defensive). */
250
+ /**
251
+ * Drop catalog-withheld keys pi-ai never accepts from a profile (defensive).
252
+ *
253
+ * openai-responses now falls through to `undefined`: the plugin suggests no
254
+ * compat field on that gate since its max_output_tokens control was retired, so
255
+ * such a profile keeps exactly what it already stores.
256
+ */
239
257
  export declare function sanitizeCompatForProtocol(compat: CompatSuggestion, api: string): CompatSuggestion | undefined;
240
258
  /**
241
259
  * Whether a route is a self-hosted relay whose upstreams cannot be assumed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-model-think-level",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "DSH 的第三方模型补齐思考等级:在官方 Models 页每个模型行注入 Thinking 开关和强度/模态编辑器,在输入框模型菜单加供应商→模型选择器、视觉徽章与等级行,并带搜索、拖拽排序、供应商启用开关;以及按路由接管请求头与 user-agent。",
5
5
  "license": "MIT",
6
6
  "author": "GaoHu1997 <gaohu9712@163.com>",