@dexto/core 1.12.0 → 1.12.1
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.
|
@@ -117,8 +117,8 @@ function buildOpenRouterProviderOptions(config) {
|
|
|
117
117
|
if (!profile.capable) {
|
|
118
118
|
return void 0;
|
|
119
119
|
}
|
|
120
|
-
if (reasoningVariant === "disabled") {
|
|
121
|
-
return { openrouter: { include_reasoning: false } };
|
|
120
|
+
if (reasoningVariant === "disabled" || reasoningVariant === "none") {
|
|
121
|
+
return { openrouter: { include_reasoning: false, reasoning: { enabled: false } } };
|
|
122
122
|
}
|
|
123
123
|
if (budgetTokens !== void 0) {
|
|
124
124
|
return {
|
|
@@ -251,12 +251,12 @@ function buildProviderOptions(config) {
|
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
if (provider === "openai") {
|
|
254
|
-
const
|
|
255
|
-
if (
|
|
254
|
+
const reasoningEffort = toOpenAIReasoningEffort(reasoningVariant);
|
|
255
|
+
if (reasoningEffort) {
|
|
256
256
|
return {
|
|
257
257
|
openai: {
|
|
258
|
-
reasoningEffort
|
|
259
|
-
...
|
|
258
|
+
reasoningEffort,
|
|
259
|
+
...reasoningEffort !== "none" && { reasoningSummary: "auto" }
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
262
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-options.d.ts","sourceRoot":"","sources":["../../../src/llm/executor/provider-options.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"provider-options.d.ts","sourceRoot":"","sources":["../../../src/llm/executor/provider-options.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAcjF,MAAM,WAAW,qBAAqB;IAClC,QAAQ,EAAE,WAAW,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC3C,WAAW,CAAC,EAAE,aAAa,CAAC;CAC/B;AA+LD,wBAAgB,iCAAiC,CAC7C,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,GACrE,MAAM,GAAG,SAAS,CA6BpB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAChC,MAAM,EAAE,qBAAqB,GAC9B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAmJrD"}
|
|
@@ -8,8 +8,7 @@ import {
|
|
|
8
8
|
isAnthropicOpusXhighThinkingModel,
|
|
9
9
|
isOpenRouterGatewayProvider,
|
|
10
10
|
isReasoningCapableModel,
|
|
11
|
-
supportsAnthropicInterleavedThinking
|
|
12
|
-
supportsOpenAIReasoningEffort
|
|
11
|
+
supportsAnthropicInterleavedThinking
|
|
13
12
|
} from "@dexto/llm";
|
|
14
13
|
const ANTHROPIC_MIN_THINKING_BUDGET_TOKENS = 1024;
|
|
15
14
|
const ANTHROPIC_DEFAULT_BUDGET_TOKENS = 2048;
|
|
@@ -105,8 +104,8 @@ function buildOpenRouterProviderOptions(config) {
|
|
|
105
104
|
if (!profile.capable) {
|
|
106
105
|
return void 0;
|
|
107
106
|
}
|
|
108
|
-
if (reasoningVariant === "disabled") {
|
|
109
|
-
return { openrouter: { include_reasoning: false } };
|
|
107
|
+
if (reasoningVariant === "disabled" || reasoningVariant === "none") {
|
|
108
|
+
return { openrouter: { include_reasoning: false, reasoning: { enabled: false } } };
|
|
110
109
|
}
|
|
111
110
|
if (budgetTokens !== void 0) {
|
|
112
111
|
return {
|
|
@@ -239,12 +238,12 @@ function buildProviderOptions(config) {
|
|
|
239
238
|
};
|
|
240
239
|
}
|
|
241
240
|
if (provider === "openai") {
|
|
242
|
-
const
|
|
243
|
-
if (
|
|
241
|
+
const reasoningEffort = toOpenAIReasoningEffort(reasoningVariant);
|
|
242
|
+
if (reasoningEffort) {
|
|
244
243
|
return {
|
|
245
244
|
openai: {
|
|
246
|
-
reasoningEffort
|
|
247
|
-
...
|
|
245
|
+
reasoningEffort,
|
|
246
|
+
...reasoningEffort !== "none" && { reasoningSummary: "auto" }
|
|
248
247
|
}
|
|
249
248
|
};
|
|
250
249
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexto/core",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
"nanoid": "^5.1.6",
|
|
168
168
|
"winston": "^3.17.0",
|
|
169
169
|
"yaml": "^2.8.3",
|
|
170
|
-
"@dexto/llm": "1.12.
|
|
170
|
+
"@dexto/llm": "1.12.1"
|
|
171
171
|
},
|
|
172
172
|
"devDependencies": {
|
|
173
173
|
"@opentelemetry/context-async-hooks": "^1.28.0",
|