modelmix 3.7.8 → 3.8.0

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 (2) hide show
  1. package/index.js +17 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -90,6 +90,10 @@ class ModelMix {
90
90
  gpt45({ options = {}, config = {} } = {}) {
91
91
  return this.attach('gpt-4.5-preview', new MixOpenAI({ options, config }));
92
92
  }
93
+ gptOss({ options = {}, config = {}, mix = { together: true } } = {}) {
94
+ if (mix.together) return this.attach('openai/gpt-oss-120b', new MixTogether({ options, config }));
95
+ return this;
96
+ }
93
97
  opus4think({ options = {}, config = {} } = {}) {
94
98
  options = { ...MixAnthropic.thinkingOptions, ...options };
95
99
  return this.attach('claude-opus-4-20250514', new MixAnthropic({ options, config }));
@@ -97,6 +101,13 @@ class ModelMix {
97
101
  opus4({ options = {}, config = {} } = {}) {
98
102
  return this.attach('claude-opus-4-20250514', new MixAnthropic({ options, config }));
99
103
  }
104
+ opus41({ options = {}, config = {} } = {}) {
105
+ return this.attach('claude-opus-4-1-20250805', new MixAnthropic({ options, config }));
106
+ }
107
+ opus41think({ options = {}, config = {} } = {}) {
108
+ options = { ...MixAnthropic.thinkingOptions, ...options };
109
+ return this.attach('claude-opus-4-1-20250805', new MixAnthropic({ options, config }));
110
+ }
100
111
  sonnet4({ options = {}, config = {} } = {}) {
101
112
  return this.attach('claude-sonnet-4-20250514', new MixAnthropic({ options, config }));
102
113
  }
@@ -889,6 +900,12 @@ class MixAnthropic extends MixCustom {
889
900
  delete options.top_p;
890
901
  }
891
902
 
903
+ if (options.model && options.model.includes('claude-opus-4-1')) {
904
+ if (options.temperature !== undefined && options.top_p !== undefined) {
905
+ delete options.top_p;
906
+ }
907
+ }
908
+
892
909
  delete options.response_format;
893
910
 
894
911
  options.system = config.system;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modelmix",
3
- "version": "3.7.8",
3
+ "version": "3.8.0",
4
4
  "description": "🧬 ModelMix - Unified API for Diverse AI LLM.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -32,7 +32,7 @@
32
32
  "together",
33
33
  "nano",
34
34
  "deepseek",
35
- "o4",
35
+ "oss",
36
36
  "4.1",
37
37
  "qwen",
38
38
  "nousresearch",