modelmix 4.4.2 → 4.4.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.
Files changed (2) hide show
  1. package/index.js +11 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -52,6 +52,7 @@ const MODEL_PRICING = {
52
52
  // MiniMax
53
53
  'MiniMax-M2.1': [0.30, 1.20],
54
54
  'MiniMax-M2.5': [0.30, 1.20],
55
+ 'fireworks/minimax-m2p5': [0.30, 1.20],
55
56
  // Perplexity
56
57
  'sonar': [1.00, 1.00],
57
58
  'sonar-pro': [3.00, 15.00],
@@ -279,14 +280,14 @@ class ModelMix {
279
280
  opus46think({ options = {}, config = {} } = {}) {
280
281
  options = { ...MixAnthropic.thinkingOptions, ...options };
281
282
  return this.attach('claude-opus-4-6', new MixAnthropic({ options, config }));
282
- }
283
+ }
283
284
  opus45think({ options = {}, config = {} } = {}) {
284
285
  options = { ...MixAnthropic.thinkingOptions, ...options };
285
286
  return this.attach('claude-opus-4-5-20251101', new MixAnthropic({ options, config }));
286
- }
287
+ }
287
288
  opus46({ options = {}, config = {} } = {}) {
288
289
  return this.attach('claude-opus-4-6', new MixAnthropic({ options, config }));
289
- }
290
+ }
290
291
  opus45({ options = {}, config = {} } = {}) {
291
292
  return this.attach('claude-opus-4-5-20251101', new MixAnthropic({ options, config }));
292
293
  }
@@ -414,7 +415,7 @@ class ModelMix {
414
415
  if (mix.fireworks) this.attach('accounts/fireworks/models/kimi-k2p5', new MixFireworks({ options, config }));
415
416
  if (mix.openrouter) this.attach('moonshotai/kimi-k2.5', new MixOpenRouter({ options, config }));
416
417
  return this;
417
- }
418
+ }
418
419
 
419
420
  kimiK2think({ options = {}, config = {}, mix = { together: true } } = {}) {
420
421
  mix = { ...this.mix, ...mix };
@@ -438,8 +439,11 @@ class ModelMix {
438
439
  return this;
439
440
  }
440
441
 
441
- minimaxM25({ options = {}, config = {} } = {}) {
442
- return this.attach('MiniMax-M2.5', new MixMiniMax({ options, config }));
442
+ minimaxM25({ options = {}, config = {}, mix = { minimax: true } } = {}) {
443
+ mix = { ...this.mix, ...mix };
444
+ if (mix.minimax) this.attach('MiniMax-M2.5', new MixMiniMax({ options, config }));
445
+ if (mix.fireworks) this.attach('fireworks/minimax-m2p5', new MixFireworks({ options, config }));
446
+ return this;
443
447
  }
444
448
 
445
449
  minimaxM2Stable({ options = {}, config = {} } = {}) {
@@ -2133,7 +2137,7 @@ class MixGoogle extends MixCustom {
2133
2137
  }
2134
2138
 
2135
2139
  const options = {};
2136
-
2140
+
2137
2141
  // Solo incluir tools si el array no está vacío
2138
2142
  if (functionDeclarations.length > 0) {
2139
2143
  options.tools = [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modelmix",
3
- "version": "4.4.2",
3
+ "version": "4.4.4",
4
4
  "description": "🧬 Reliable interface with automatic fallback for AI LLMs.",
5
5
  "main": "index.js",
6
6
  "repository": {