@ax-llm/ax 11.0.65 → 11.0.66
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/index.cjs +4 -4
- package/index.cjs.map +1 -1
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2272,7 +2272,7 @@ var AxAIOpenAIImpl = class {
|
|
|
2272
2272
|
}
|
|
2273
2273
|
};
|
|
2274
2274
|
}
|
|
2275
|
-
if (config
|
|
2275
|
+
if (config?.thinkingTokenBudget) {
|
|
2276
2276
|
switch (config.thinkingTokenBudget) {
|
|
2277
2277
|
case "none":
|
|
2278
2278
|
reqValue.reasoning_effort = void 0;
|
|
@@ -3336,7 +3336,7 @@ var AxAIGoogleGeminiImpl = class {
|
|
|
3336
3336
|
if (this.config.thinking?.thinkingTokenBudget) {
|
|
3337
3337
|
thinkingConfig.thinkingBudget = this.config.thinking.thinkingTokenBudget;
|
|
3338
3338
|
}
|
|
3339
|
-
if (config
|
|
3339
|
+
if (config?.thinkingTokenBudget) {
|
|
3340
3340
|
switch (config.thinkingTokenBudget) {
|
|
3341
3341
|
case "none":
|
|
3342
3342
|
thinkingConfig.thinkingBudget = 0;
|
|
@@ -3359,8 +3359,8 @@ var AxAIGoogleGeminiImpl = class {
|
|
|
3359
3359
|
break;
|
|
3360
3360
|
}
|
|
3361
3361
|
}
|
|
3362
|
-
if (config
|
|
3363
|
-
if (config
|
|
3362
|
+
if (config?.showThoughts !== void 0) {
|
|
3363
|
+
if (config?.thinkingTokenBudget !== "none") {
|
|
3364
3364
|
thinkingConfig.includeThoughts = config.showThoughts;
|
|
3365
3365
|
}
|
|
3366
3366
|
}
|