modelmix 4.4.28 → 4.4.32
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 +2 -2
- package/demo/json.js +1 -1
- package/index.js +8 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -136,6 +136,8 @@ Here's a comprehensive list of available methods:
|
|
|
136
136
|
| Method | Provider | Model | Price (I/O) per 1 M tokens |
|
|
137
137
|
| ------------------ | ---------- | ------------------------------ | -------------------------- |
|
|
138
138
|
| `gpt54()` | OpenAI | gpt-5.4 | [\$2.50 / \$15.00][1] |
|
|
139
|
+
| `gpt54mini()` | OpenAI | gpt-5.4-mini | [\$0.75 / \$4.50][1] |
|
|
140
|
+
| `gpt54nano()` | OpenAI | gpt-5.4-nano | [\$0.20 / \$1.25][1] |
|
|
139
141
|
| `gpt53codex()` | OpenAI | gpt-5.3-codex | [\$1.25 / \$14.00][1] |
|
|
140
142
|
| `gpt52()` | OpenAI | gpt-5.2 | [\$1.75 / \$14.00][1] |
|
|
141
143
|
| `gpt51()` | OpenAI | gpt-5.1 | [\$1.25 / \$10.00][1] |
|
|
@@ -153,8 +155,6 @@ Here's a comprehensive list of available methods:
|
|
|
153
155
|
| `gemini31pro()` | Google | gemini-3.1-pro-preview | [\$2.00 / \$12.00][3] |
|
|
154
156
|
| `gemini3pro()` | Google | gemini-3-pro-preview | [\$2.00 / \$12.00][3] |
|
|
155
157
|
| `gemini3flash()` | Google | gemini-3-flash-preview | [\$0.50 / \$3.00][3] |
|
|
156
|
-
| `gemini25pro()` | Google | gemini-2.5-pro | [\$1.25 / \$10.00][3] |
|
|
157
|
-
| `gemini25flash()` | Google | gemini-2.5-flash | [\$0.30 / \$2.50][3] |
|
|
158
158
|
| `grok4()` | Grok | grok-4-0709 | [\$3.00 / \$15.00][6] |
|
|
159
159
|
| `grok41[think]()` | Grok | grok-4-1-fast | [\$0.20 / \$0.50][6] |
|
|
160
160
|
| `deepseekV32()` | Fireworks | fireworks/models/deepseek-v3p2 | [\$0.56 / \$1.68][10] |
|
package/demo/json.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ModelMix } from '../index.js';
|
|
|
2
2
|
try { process.loadEnvFile(); } catch {}
|
|
3
3
|
|
|
4
4
|
const model = await ModelMix.new({ options: { max_tokens: 10000 }, config: { debug: 3 } })
|
|
5
|
-
.
|
|
5
|
+
.gpt54nano()
|
|
6
6
|
// .gptOss()
|
|
7
7
|
// .scout({ config: { temperature: 0 } })
|
|
8
8
|
// .o4mini()
|
package/index.js
CHANGED
|
@@ -20,6 +20,8 @@ const MODEL_PRICING = {
|
|
|
20
20
|
'gpt-realtime': [4.00, 16.00],
|
|
21
21
|
'gpt-5.4': [2.50, 15.00],
|
|
22
22
|
'gpt-5.4-pro': [30, 180.00],
|
|
23
|
+
'gpt-5.4-mini': [0.75, 4.50],
|
|
24
|
+
'gpt-5.4-nano': [0.20, 1.25],
|
|
23
25
|
'gpt-5.3-codex': [1.75, 14.00],
|
|
24
26
|
'gpt-5.2': [1.75, 14.00],
|
|
25
27
|
'gpt-5.2-chat-latest': [1.75, 14.00],
|
|
@@ -280,6 +282,12 @@ class ModelMix {
|
|
|
280
282
|
gpt54({ options = {}, config = {} } = {}) {
|
|
281
283
|
return this.attach('gpt-5.4', new MixOpenAIResponses({ options, config }));
|
|
282
284
|
}
|
|
285
|
+
gpt54mini({ options = {}, config = {} } = {}) {
|
|
286
|
+
return this.attach('gpt-5.4-mini', new MixOpenAIResponses({ options, config }));
|
|
287
|
+
}
|
|
288
|
+
gpt54nano({ options = {}, config = {} } = {}) {
|
|
289
|
+
return this.attach('gpt-5.4-nano', new MixOpenAIResponses({ options, config }));
|
|
290
|
+
}
|
|
283
291
|
gpt54pro({ options = {}, config = {} } = {}) {
|
|
284
292
|
return this.attach('gpt-5.4-pro', new MixOpenAIResponses({ options, config }));
|
|
285
293
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "modelmix",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.32",
|
|
4
4
|
"description": "🧬 Reliable interface with automatic fallback for AI LLMs.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"minimax",
|
|
38
38
|
"thinking",
|
|
39
39
|
"fireworks",
|
|
40
|
-
"
|
|
40
|
+
"litellm",
|
|
41
41
|
"clasen"
|
|
42
42
|
],
|
|
43
43
|
"author": "Martin Clasen",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
51
51
|
"axios": "^1.13.5",
|
|
52
52
|
"bottleneck": "^2.19.5",
|
|
53
|
-
"file-type": "^21.3.
|
|
53
|
+
"file-type": "^21.3.3",
|
|
54
54
|
"form-data": "^4.0.4",
|
|
55
55
|
"lemonlog": "^1.2.0",
|
|
56
56
|
"ws": "^8.19.0"
|