modelmix 3.6.8 → 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 +2 -1
- package/index.js +4 -1
- package/package.json +2 -2
package/demo/grok.mjs
CHANGED
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 }));
|
|
@@ -327,7 +330,7 @@ class ModelMix {
|
|
|
327
330
|
config.system += "\n\nOutput JSON Example: \n```\n" + JSON.stringify(schemaExample) + "\n```";
|
|
328
331
|
}
|
|
329
332
|
if (addNote) {
|
|
330
|
-
config.system +=
|
|
333
|
+
config.system += "\n\nOutput JSON Escape: double quotes, backslashes, and control characters inside JSON strings.\nEnsure the output contains no comments.";
|
|
331
334
|
}
|
|
332
335
|
}
|
|
333
336
|
const { message } = await this.execute({ options, config });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "modelmix",
|
|
3
|
-
"version": "3.
|
|
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
|
-
"
|
|
19
|
+
"grok4",
|
|
20
20
|
"gpt",
|
|
21
21
|
"claude",
|
|
22
22
|
"llama",
|