failsafe-llm-model-resolver 1.0.1 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +9 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -46,7 +46,15 @@ const PREFERENCE = {
46
46
  // Prefer flagship grok-*, skip fast / mini / code-fast variants when possible
47
47
  xai: {
48
48
  include: /^grok-/i,
49
- exclude: /fast|mini|lite|code-fast/i,
49
+ // "non-reasoning" is intentionally its own term here, not "reasoning" -
50
+ // xAI ships paired variants like grok-4.20-0309-reasoning and
51
+ // grok-4.20-0309-non-reasoning. Excluding bare /reasoning/ would match
52
+ // BOTH strings (non-reasoning contains "reasoning" as a substring) and
53
+ // throw away the good one along with the bad one. non-?reasoning also
54
+ // catches an unhyphenated "nonreasoning" form if xAI ever ships one.
55
+ // Tagging/classification work benefits from the reasoning variant, so
56
+ // steer away from the faster-but-shallower non-reasoning one by default.
57
+ exclude: /fast|mini|lite|code-fast|non-?reasoning/i,
50
58
  },
51
59
  // Prefer sonnet/opus over haiku; newest first already gives us the latest
52
60
  anthropic: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "failsafe-llm-model-resolver",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Self-healing, failsafe resolver for the current frontier model across xAI, Anthropic, Gemini, and OpenRouter. Live /models fetch + preference rules + env fallbacks so a network blip never kills a batch job.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",