modelmix 4.4.18 → 4.4.20

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 CHANGED
@@ -185,7 +185,7 @@ const result = await ModelMix.new({
185
185
  options: { temperature: 0.7 },
186
186
  config: { system: "You are a helpful assistant" }
187
187
  })
188
- .sonnet37()
188
+ .sonnet46()
189
189
  .addText("Tell me a story about a cat");
190
190
  .message();
191
191
  ```
package/demo/fallback.js CHANGED
@@ -15,7 +15,7 @@ const mmix = new ModelMix({
15
15
  }
16
16
  });
17
17
 
18
- mmix.sonnet37({ config: { url: 'fail' } }).gpt41nano();
18
+ mmix.sonnet46({ config: { url: 'fail' } }).gpt41nano();
19
19
 
20
20
  async function main() {
21
21
  mmix.addText('hola, como estas?');
package/demo/json.js CHANGED
@@ -6,7 +6,6 @@ const model = await ModelMix.new({ options: { max_tokens: 10000 }, config: { deb
6
6
  // .gptOss()
7
7
  // .scout({ config: { temperature: 0 } })
8
8
  // .o4mini()
9
- // .sonnet37think()
10
9
  // .gpt45()
11
10
  // .gemini25flash()
12
11
  .addText("Name and capital of 3 South American countries.")
package/index.js CHANGED
@@ -343,13 +343,6 @@ class ModelMix {
343
343
  options = { ...MixAnthropic.thinkingOptions, ...options };
344
344
  return this.attach('claude-sonnet-4-5-20250929', new MixAnthropic({ options, config }));
345
345
  }
346
- sonnet37({ options = {}, config = {} } = {}) {
347
- return this.attach('claude-3-7-sonnet-20250219', new MixAnthropic({ options, config }));
348
- }
349
- sonnet37think({ options = {}, config = {} } = {}) {
350
- options = { ...MixAnthropic.thinkingOptions, ...options };
351
- return this.attach('claude-3-7-sonnet-20250219', new MixAnthropic({ options, config }));
352
- }
353
346
  haiku35({ options = {}, config = {} } = {}) {
354
347
  return this.attach('claude-3-5-haiku-20241022', new MixAnthropic({ options, config }));
355
348
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modelmix",
3
- "version": "4.4.18",
3
+ "version": "4.4.20",
4
4
  "description": "🧬 Reliable interface with automatic fallback for AI LLMs.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -96,9 +96,9 @@ If `sonnet46` fails, it automatically tries `gpt52`, then `gemini3flash`.
96
96
  `gpt52()` `gpt52chat()` `gpt51()` `gpt5()` `gpt5mini()` `gpt5nano()` `gpt45()` `gpt41()` `gpt41mini()` `gpt41nano()` `o3()` `o4mini()`
97
97
 
98
98
  ### Anthropic
99
- `opus46()` `opus45()` `opus41()` `sonnet46()` `sonnet45()` `sonnet4()` `sonnet37()` `haiku45()` `haiku35()`
99
+ `opus46()` `opus45()` `opus41()` `sonnet46()` `sonnet45()` `sonnet4()` `haiku45()` `haiku35()`
100
100
 
101
- Thinking variants: append `think` — e.g. `opus46think()` `sonnet46think()` `sonnet45think()` `sonnet4think()` `sonnet37think()` `opus45think()` `opus41think()` `haiku45think()`
101
+ Thinking variants: append `think` — e.g. `opus46think()` `sonnet46think()` `sonnet45think()` `sonnet4think()` `opus45think()` `opus41think()` `haiku45think()`
102
102
 
103
103
  ### Google
104
104
  `gemini3pro()` `gemini3flash()` `gemini25pro()` `gemini25flash()`