@apinggithub/mydsh-auto-model-router 0.2.4 → 0.2.5

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/config.mjs +5 -5
  2. package/package.json +1 -1
package/config.mjs CHANGED
@@ -22,7 +22,7 @@
22
22
  // fallbackChain: [route, ...] (model-level, appended with the default)
23
23
  // maxRetries: per-route retry budget on request-error
24
24
 
25
- export const PLUGIN_VERSION = '0.2.4'
25
+ export const PLUGIN_VERSION = '0.2.5'
26
26
 
27
27
  export const LEVEL_IDS = Object.freeze(['L0', 'L1', 'L2', 'L3'])
28
28
  export const COST_MODES = Object.freeze(['cost-first', 'quality-first', 'balanced'])
@@ -213,12 +213,12 @@ function normalizeFreeQuota(freeQuota) {
213
213
  `mydsh-auto-model-router: ${where}.maxLevel must be one of ${LEVEL_IDS.join(', ')}, got "${maxLevel}"`,
214
214
  )
215
215
  }
216
- // Ride along with an explicit effort, exactly like a level route, so the
217
- // dispatched request never falls back to the adapter's own default
218
- // thinking level by accident.
216
+ // Free routes state an effort only when the user asks for one: the host
217
+ // rejects an effort on a model without reasoning metadata, and free tiers
218
+ // are exactly where non-thinking models (Qwen/GLM flash) live.
219
219
  return {
220
220
  ...normalized,
221
- reasoningEffort: normalized.reasoningEffort ?? 'off',
221
+ ...normalized.reasoningEffort === undefined ? {} : { reasoningEffort: normalized.reasoningEffort },
222
222
  maxLevel,
223
223
  }
224
224
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apinggithub/mydsh-auto-model-router",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Hybrid model router for DeepSeek Harness: declarative rules, user-configurable cost control (cost-first / quality-first / balanced), optional LLM task classifier, and failure fallback chains.",
5
5
  "type": "module",
6
6
  "main": "index.mjs",