modelmix 4.3.2 → 4.3.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 (3) hide show
  1. package/README.md +1 -0
  2. package/index.js +12 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -139,6 +139,7 @@ Here's a comprehensive list of available methods:
139
139
  | `gpt41mini()` | OpenAI | gpt-4.1-mini | [\$0.40 / \$1.60][1] |
140
140
  | `gpt41nano()` | OpenAI | gpt-4.1-nano | [\$0.10 / \$0.40][1] |
141
141
  | `gptOss()` | Together | gpt-oss-120B | [\$0.15 / \$0.60][7] |
142
+ | `opus46[think]()` | Anthropic | claude-opus-4-6 | [\$5.00 / \$25.00][2] |
142
143
  | `opus45[think]()` | Anthropic | claude-opus-4-5-20251101 | [\$5.00 / \$25.00][2] |
143
144
  | `opus41[think]()` | Anthropic | claude-opus-4-1-20250805 | [\$15.00 / \$75.00][2] |
144
145
  | `sonnet45[think]()`| Anthropic | claude-sonnet-4-5-20250929 | [\$3.00 / \$15.00][2] |
package/index.js CHANGED
@@ -190,6 +190,17 @@ class ModelMix {
190
190
  if (mix.openrouter) this.attach('openai/gpt-oss-120b:free', new MixOpenRouter({ options, config }));
191
191
  return this;
192
192
  }
193
+ opus46think({ options = {}, config = {} } = {}) {
194
+ options = { ...MixAnthropic.thinkingOptions, ...options };
195
+ return this.attach('claude-opus-4-6', new MixAnthropic({ options, config }));
196
+ }
197
+ opus45think({ options = {}, config = {} } = {}) {
198
+ options = { ...MixAnthropic.thinkingOptions, ...options };
199
+ return this.attach('claude-opus-4-5-20251101', new MixAnthropic({ options, config }));
200
+ }
201
+ opus46({ options = {}, config = {} } = {}) {
202
+ return this.attach('claude-opus-4-6', new MixAnthropic({ options, config }));
203
+ }
193
204
  opus45({ options = {}, config = {} } = {}) {
194
205
  return this.attach('claude-opus-4-5-20251101', new MixAnthropic({ options, config }));
195
206
  }
@@ -1349,7 +1360,7 @@ class MixAnthropic extends MixCustom {
1349
1360
  static thinkingOptions = {
1350
1361
  thinking: {
1351
1362
  "type": "enabled",
1352
- "budget_tokens": 1024
1363
+ "budget_tokens": 1638
1353
1364
  },
1354
1365
  temperature: 1
1355
1366
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modelmix",
3
- "version": "4.3.2",
3
+ "version": "4.3.4",
4
4
  "description": "🧬 Reliable interface with automatic fallback for AI LLMs.",
5
5
  "main": "index.js",
6
6
  "repository": {