modelmix 4.5.10 → 4.5.12

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 (3) hide show
  1. package/README.md +3 -3
  2. package/index.js +21 -15
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -158,15 +158,15 @@ Here's a comprehensive list of available methods:
158
158
  | `gemini31flashLite()`| Google | gemini-3.1-flash-lite-preview | [\$0.25 / \$1.50][3] |
159
159
  | `grok4()` | Grok | grok-4-0709 | [\$3.00 / \$15.00][6] |
160
160
  | `grok41[think]()` | Grok | grok-4-1-fast | [\$0.20 / \$0.50][6] |
161
- | `deepseekV32()` | Fireworks | fireworks/models/deepseek-v3p2| [\$0.56 / \$1.68][10] |
162
- | `GLM47()` | Fireworks | fireworks/models/glm-4p7 | [\$0.55 / \$2.19][10] |
161
+ | `deepseekV4Pro()` | Fireworks | models/deepseek-v4-pro | [\$1.74 / \$3.48][10] |
162
+ | `GLM51()` | Fireworks | models/glm-5p1 | [\$1.05 / \$3.50][10] |
163
163
  | `minimaxM27()` | MiniMax | MiniMax-M2.7 | [\$0.30 / \$1.20][9] |
164
164
  | `sonar()` | Perplexity | sonar | [\$1.00 / \$1.00][4] |
165
165
  | `sonarPro()` | Perplexity | sonar-pro | [\$3.00 / \$15.00][4] |
166
166
  | `hermes3()` | Lambda | Hermes-3-Llama-3.1-405B-FP8 | [\$0.80 / \$0.80][8] |
167
167
  | `qwen3()` | Together | Qwen3-235B-A22B-fp8-tput | [\$0.20 / \$0.60][7] |
168
168
  | `kimiK25think()` | Together | Kimi-K2.5 | [\$0.50 / \$2.80][7] |
169
- | `kimiK26think()` | Fireworks | fireworks/models/kimi-k2p6 | [\$0.95 / \$4.00][10] |
169
+ | `kimiK26think()` | Fireworks | models/kimi-k2p6 | [\$0.95 / \$4.00][10] |
170
170
 
171
171
  [1]: https://platform.openai.com/docs/pricing "Pricing | OpenAI"
172
172
  [2]: https://docs.anthropic.com/en/docs/about-claude/pricing "Pricing - Anthropic"
package/index.js CHANGED
@@ -78,8 +78,11 @@ const MODEL_PRICING = {
78
78
  'grok-4-1-fast-non-reasoning': [0.20, 0.50],
79
79
  // Fireworks
80
80
  'accounts/fireworks/models/deepseek-v3p2': [0.56, 1.68],
81
+ 'accounts/fireworks/models/deepseek-v4-pro': [1.74, 3.48],
81
82
  'accounts/fireworks/models/glm-4p7': [0.55, 2.19],
83
+ 'accounts/fireworks/models/glm-5p1': [1.05, 3.50],
82
84
  'accounts/fireworks/models/kimi-k2p5': [0.50, 2.80],
85
+ 'accounts/fireworks/models/qwen3p6-plus': [0.50, 3.00],
83
86
  'fireworks/glm-5': [1.00, 3.20],
84
87
  // MiniMax
85
88
  'MiniMax-M2.1': [0.30, 1.20],
@@ -440,6 +443,10 @@ class ModelMix {
440
443
  return this;
441
444
  }
442
445
 
446
+ qwen36plus({ options = {}, config = {}, mix = { } } = {}) {
447
+ return this.attach('accounts/fireworks/models/qwen3p6-plus', new MixFireworks({ options, config }));
448
+ }
449
+
443
450
  scout({ options = {}, config = {}, mix = {} } = {}) {
444
451
  mix = { ...this.mix, ...mix };
445
452
  if (mix.groq) this.attach('meta-llama/llama-4-scout-17b-16e-instruct', new MixGroq({ options, config }));
@@ -474,6 +481,7 @@ class ModelMix {
474
481
  mix = { ...this.mix, ...mix };
475
482
  if (mix.fireworks) this.attach('accounts/fireworks/models/kimi-k2p6', new MixFireworks({ options, config }));
476
483
  if (mix.openrouter) this.attach('moonshotai/kimi-k2.6', new MixOpenRouter({ options, config }));
484
+ if (mix.together) this.attach('moonshotai/Kimi-K2.6', new MixTogether({ options, config }));
477
485
  return this;
478
486
  }
479
487
 
@@ -514,13 +522,23 @@ class ModelMix {
514
522
  minimaxM27({ options = {}, config = {}, mix = { openrouter: true, minimax: true } } = {}) {
515
523
  if (mix.openrouter) return this.attach('minimax/minimax-m2.7', new MixOpenRouter({ options, config }));
516
524
  if (mix.minimax) return this.attach('MiniMax-M2.7', new MixMiniMax({ options, config }));
525
+ if (mix.together) return this.attach('MiniMaxAI/MiniMax-M2.7', new MixTogether({ options, config }));
517
526
  return this;
518
527
  }
519
528
 
520
- deepseekV32({ options = {}, config = {}, mix = {} } = {}) {
529
+ deepseekV4Pro({ options = {}, config = {}, mix = { fireworks: true } } = {}) {
521
530
  mix = { ...this.mix, ...mix };
522
- if (mix.fireworks) this.attach('accounts/fireworks/models/deepseek-v3p2', new MixFireworks({ options, config }));
523
- if (mix.openrouter) this.attach('deepseek/deepseek-v3.2', new MixOpenRouter({ options, config }));
531
+ if (mix.fireworks) this.attach('accounts/fireworks/models/deepseek-v4-pro', new MixFireworks({ options, config }));
532
+ if (mix.openrouter) this.attach('deepseek/deepseek-v4-pro', new MixOpenRouter({ options, config }));
533
+ if (mix.together) this.attach('deepseek-ai/DeepSeek-V4-Pro', new MixTogether({ options, config }));
534
+ return this;
535
+ }
536
+
537
+ GLM51({ options = {}, config = {}, mix = { fireworks: true } } = {}) {
538
+ mix = { ...this.mix, ...mix };
539
+ if (mix.fireworks) this.attach('accounts/fireworks/models/glm-5p1', new MixFireworks({ options, config }));
540
+ if (mix.openrouter) this.attach('z-ai/glm-5.1', new MixOpenRouter({ options, config }));
541
+ if (mix.together) this.attach('zai-org/GLM-5.1', new MixTogether({ options, config }));
524
542
  return this;
525
543
  }
526
544
 
@@ -538,18 +556,6 @@ class ModelMix {
538
556
  return this;
539
557
  }
540
558
 
541
- GLM46({ options = {}, config = {}, mix = { cerebras: true } } = {}) {
542
- mix = { ...this.mix, ...mix };
543
- if (mix.cerebras) this.attach('zai-glm-4.6', new MixCerebras({ options, config }));
544
- return this;
545
- }
546
-
547
- GLM45({ options = {}, config = {}, mix = { openrouter: true } } = {}) {
548
- mix = { ...this.mix, ...mix };
549
- if (mix.openrouter) this.attach('z-ai/glm-4.5-air:free', new MixOpenRouter({ options, config }));
550
- return this;
551
- }
552
-
553
559
  addText(text, { role = "user" } = {}) {
554
560
  const content = [{
555
561
  type: "text",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modelmix",
3
- "version": "4.5.10",
3
+ "version": "4.5.12",
4
4
  "description": "🧬 Reliable interface with automatic fallback for AI LLMs.",
5
5
  "main": "index.js",
6
6
  "repository": {