modelmix 5.1.16 → 5.1.17

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.md CHANGED
@@ -197,7 +197,7 @@ ModelMix provides convenient shorthand methods for quickly accessing different A
197
197
  | `grok420multiAgent()` | Grok | grok-4.20-multi-agent-0309 | [\$1.25][6] | [\$2.50][6] |
198
198
  | `grok420()` | Grok | grok-4.20-0309 (†) | [\$1.25][6] | [\$2.50][6] |
199
199
  | `museGlimmer30b()` | Fireworks | models/muse-glimmer-30b | [\$0.35][17] | [\$1.50][17] |
200
- | `museSpark12Contributor()` | OpenRouter | meta/muse-spark-1.2-contributor | [\$0.10][22] | [\$0.20][22] |
200
+ | `museSpark12()` | OpenRouter | meta/muse-spark-1.2-contributor | [\$0.10][22] | [\$0.20][22] |
201
201
  | `qwen35397b()` | OpenRouter | qwen/qwen3.5-397b-a17b | [\$0.385][14] | [\$2.45][14] |
202
202
  | `qwen36plus()` | OpenRouter | qwen/qwen3.6-plus | [\$0.325][18] | [\$1.95][18] |
203
203
  | `qwen37plus()` | Fireworks | models/qwen3p7-plus | [\$0.40][10] | [\$1.60][10] |
package/demo/short.js CHANGED
@@ -21,7 +21,7 @@ const mmix = await ModelMix.new(setup)
21
21
  .GLM53() // (fallback 10) OpenRouter z-ai/glm-5.3
22
22
  .GLM53Flash() // (fallback 11) OpenRouter z-ai/glm-5.3-flash
23
23
  .museGlimmer30b({ mix: { fireworks: false, openrouter: true } }) // (fallback 12) OpenRouter meta/muse-glimmer-30b
24
- .museSpark12Contributor() // (fallback 13) OpenRouter meta/muse-spark-1.2-contributor
24
+ .museSpark12() // (fallback 13) OpenRouter meta/muse-spark-1.2-contributor
25
25
  .hermes470b() // (fallback 14) OpenRouter nousresearch/hermes-4-70b
26
26
  .hermes4405b() // (fallback 15) OpenRouter nousresearch/hermes-4-405b
27
27
  .addText("What's your name?");
package/index.d.ts CHANGED
@@ -503,7 +503,7 @@ export declare class ModelMix {
503
503
 
504
504
  // Multi-provider
505
505
  museGlimmer30b(args?: ModelAttachArgs): this;
506
- museSpark12Contributor(args?: ModelAttachArgs): this;
506
+ museSpark12(args?: ModelAttachArgs): this;
507
507
  qwen35397b(args?: ModelAttachArgs): this;
508
508
  qwen36plus(args?: ModelAttachArgs): this;
509
509
  qwen37plus(args?: ModelAttachArgs): this;
package/index.js CHANGED
@@ -624,7 +624,7 @@ class ModelMix {
624
624
  return this;
625
625
  }
626
626
 
627
- museSpark12Contributor({ options = {}, config = {} } = {}) {
627
+ museSpark12({ options = {}, config = {} } = {}) {
628
628
  return this.attach('meta/muse-spark-1.2-contributor', new MixOpenRouter({ options, config }));
629
629
  }
630
630
 
@@ -10,7 +10,7 @@ const CHAIN_MODEL_SHORTCUTS = new Set([
10
10
  'gemini31pro', 'gemini38flash', 'gemini37flash', 'gemini36flash', 'gemini35flash',
11
11
  'gemini35flashLite', 'gemini31flashLite', 'sonarPro', 'sonar',
12
12
  'grok46', 'grok45', 'grok43', 'grok420multiAgent', 'grok420',
13
- 'museGlimmer30b', 'museSpark12Contributor',
13
+ 'museGlimmer30b', 'museSpark12',
14
14
  'qwen35397b', 'qwen36plus', 'qwen37plus', 'qwen38max', 'qwen3827b', 'qwen38flash',
15
15
  'hermes470b', 'hermes4405b', 'hermes3',
16
16
  'kimiK26', 'kimiK27Code', 'kimiK3', 'kimiK25',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modelmix",
3
- "version": "5.1.16",
3
+ "version": "5.1.17",
4
4
  "description": "🧬 Reliable interface with automatic fallback for AI LLMs.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -6,16 +6,18 @@ allowBuilds:
6
6
 
7
7
  minimumReleaseAgeExclude:
8
8
  - ws@8.21.0
9
- - fast-uri@3.1.5
9
+ - fast-uri@3.1.6
10
10
  - hono@4.12.34
11
11
  - ip-address@10.3.1
12
12
  - js-yaml@4.3.1
13
13
  - brace-expansion@5.0.9
14
+ - qs@6.16.0
14
15
  overrides:
15
16
  brace-expansion: 5.0.9
16
17
  diff: 8.0.4
17
- fast-uri: 3.1.5
18
+ fast-uri: 3.1.6
18
19
  hono: 4.12.34
19
20
  ip-address: 10.3.1
20
21
  js-yaml: 4.3.1
22
+ qs: 6.16.0
21
23
  serialize-javascript: 7.0.5
@@ -190,7 +190,7 @@ Use `.effort(n)` (or `config.effort`) to enable Anthropic thinking — e.g. `.ef
190
190
  `GLM46()`
191
191
 
192
192
  ### OpenRouter
193
- `museGlimmer30b()` `museSpark12Contributor()` `gptOss()` `qwen35397b()` `qwen36plus()` `qwen37plus()` `qwen3827b()` `qwen38flash()` `hermes470b()` `hermes4405b()` `qwen38max()` `kimiK27Code()` `kimiK3()` `minimaxM27()` `minimaxM3()` `GLM45()` `GLM52()` `GLM53()` `GLM53Flash()`
193
+ `museGlimmer30b()` `museSpark12()` `gptOss()` `qwen35397b()` `qwen36plus()` `qwen37plus()` `qwen3827b()` `qwen38flash()` `hermes470b()` `hermes4405b()` `qwen38max()` `kimiK27Code()` `kimiK3()` `minimaxM27()` `minimaxM3()` `GLM45()` `GLM52()` `GLM53()` `GLM53Flash()`
194
194
 
195
195
  ### Multi-provider (auto-fallback across free/paid tiers)
196
196
  `hermes3()` `kimiK25()`
package/test/muse.test.js CHANGED
@@ -57,7 +57,7 @@ describe('Muse Model Registration Tests', () => {
57
57
  });
58
58
 
59
59
  it('registers Muse Spark 1.2 Contributor through OpenRouter', () => {
60
- const model = ModelMix.new().museSpark12Contributor();
60
+ const model = ModelMix.new().museSpark12();
61
61
 
62
62
  expect(model.models).to.have.length(1);
63
63
  expect(model.models[0].key).to.equal('meta/muse-spark-1.2-contributor');
@@ -70,7 +70,7 @@ describe('Muse Model Registration Tests', () => {
70
70
  });
71
71
 
72
72
  it('supports Muse Spark 1.2 Contributor in chain()', () => {
73
- const model = ModelMix.new().chain('museSpark12Contributor');
73
+ const model = ModelMix.new().chain('museSpark12');
74
74
 
75
75
  expect(model.models).to.have.length(1);
76
76
  expect(model.models[0].key).to.equal('meta/muse-spark-1.2-contributor');