modelmix 3.7.0 → 3.7.2

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/demo/grok.mjs CHANGED
@@ -14,8 +14,9 @@ const mmix = new ModelMix({
14
14
  });
15
15
 
16
16
 
17
- const r = await mmix.grok3mini()
17
+ const r = await mmix.grok4()
18
18
  .addText('hi there!')
19
19
  .addText('do you like cats?')
20
20
  .raw();
21
+
21
22
  console.log(r);
package/index.js CHANGED
@@ -142,6 +142,9 @@ class ModelMix {
142
142
  grok3mini({ options = {}, config = {} } = {}) {
143
143
  return this.attach('grok-3-mini-beta', new MixGrok({ options, config }));
144
144
  }
145
+ grok4({ options = {}, config = {} } = {}) {
146
+ return this.attach('grok-4-0709', new MixGrok({ options, config }));
147
+ }
145
148
 
146
149
  qwen3({ options = {}, config = {}, mix = { together: true, cerebras: false } } = {}) {
147
150
  if (mix.together) this.attach('Qwen/Qwen3-235B-A22B-fp8-tput', new MixTogether({ options, config }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modelmix",
3
- "version": "3.7.0",
3
+ "version": "3.7.2",
4
4
  "description": "🧬 ModelMix - Unified API for Diverse AI LLM.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -16,7 +16,7 @@
16
16
  "anthropic",
17
17
  "agent",
18
18
  "perplexity",
19
- "grok",
19
+ "grok4",
20
20
  "gpt",
21
21
  "claude",
22
22
  "llama",