modelmix 4.2.8 → 4.3.0
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 +1 -1
- package/index.js +9 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -160,7 +160,7 @@ Here's a comprehensive list of available methods:
|
|
|
160
160
|
| `hermes3()` | Lambda | Hermes-3-Llama-3.1-405B-FP8 | [\$0.80 / \$0.80][8] |
|
|
161
161
|
| `qwen3()` | Together | Qwen3-235B-A22B-fp8-tput | [\$0.20 / \$0.60][7] |
|
|
162
162
|
| `kimiK2()` | Together | Kimi-K2-Instruct | [\$1.00 / \$3.00][7] |
|
|
163
|
-
| `
|
|
163
|
+
| `kimiK25think()` | Together | Kimi-K2.5 | [\$0.50 / \$2.80][7] |
|
|
164
164
|
|
|
165
165
|
[1]: https://platform.openai.com/docs/pricing "Pricing | OpenAI"
|
|
166
166
|
[2]: https://docs.anthropic.com/en/docs/about-claude/pricing "Pricing - Anthropic"
|
package/index.js
CHANGED
|
@@ -311,6 +311,14 @@ class ModelMix {
|
|
|
311
311
|
return this;
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
+
kimiK25think({ options = {}, config = {}, mix = { together: true } } = {}) {
|
|
315
|
+
mix = { ...this.mix, ...mix };
|
|
316
|
+
if (mix.together) this.attach('moonshotai/Kimi-K2.5', new MixTogether({ options, config }));
|
|
317
|
+
if (mix.fireworks) this.attach('accounts/fireworks/models/kimi-k2p5', new MixFireworks({ options, config }));
|
|
318
|
+
if (mix.openrouter) this.attach('moonshotai/kimi-k2.5', new MixOpenRouter({ options, config }));
|
|
319
|
+
return this;
|
|
320
|
+
}
|
|
321
|
+
|
|
314
322
|
kimiK2think({ options = {}, config = {}, mix = { together: true } } = {}) {
|
|
315
323
|
mix = { ...this.mix, ...mix };
|
|
316
324
|
if (mix.together) this.attach('moonshotai/Kimi-K2-Thinking', new MixTogether({ options, config }));
|
|
@@ -552,7 +560,7 @@ class ModelMix {
|
|
|
552
560
|
|
|
553
561
|
_extractBlock(response) {
|
|
554
562
|
const block = response.match(/```(?:\w+)?\s*([\s\S]*?)```/);
|
|
555
|
-
return block ? block[1].trim() : response;
|
|
563
|
+
return block ? block[1].trim() : response.trim();
|
|
556
564
|
}
|
|
557
565
|
|
|
558
566
|
async block({ addSystemExtra = true } = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "modelmix",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "🧬 Reliable interface with automatic fallback for AI LLMs.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/clasen/ModelMix#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@modelcontextprotocol/sdk": "^1.25.
|
|
49
|
+
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
50
50
|
"axios": "^1.12.2",
|
|
51
51
|
"bottleneck": "^2.19.5",
|
|
52
52
|
"file-type": "^16.5.4",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"chai": "^5.2.1",
|
|
58
58
|
"dotenv": "^17.2.1",
|
|
59
|
-
"mocha": "^11.
|
|
59
|
+
"mocha": "^11.3.0",
|
|
60
60
|
"nock": "^14.0.9",
|
|
61
61
|
"sinon": "^21.0.0"
|
|
62
62
|
},
|