modelmix 2.7.4 → 2.7.6

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 +6 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -59,6 +59,12 @@ class ModelMix {
59
59
  model: modelKey
60
60
  };
61
61
 
62
+ // Remove max_tokens for o3 models
63
+ if (modelKey.startsWith('o3')) {
64
+ delete options.max_tokens;
65
+ delete options.temperature;
66
+ }
67
+
62
68
  const config = {
63
69
  ...this.config,
64
70
  ...modelEntry.config,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modelmix",
3
- "version": "2.7.4",
3
+ "version": "2.7.6",
4
4
  "description": "🧬 ModelMix - Unified API for Diverse AI LLM.",
5
5
  "main": "index.js",
6
6
  "repository": {