@dexto/core 1.8.7 → 1.8.9
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.
|
@@ -55,7 +55,7 @@ const CURATED_MODEL_IDS_BY_PROVIDER = {
|
|
|
55
55
|
"gemini-2.5-flash"
|
|
56
56
|
],
|
|
57
57
|
xai: ["grok-4.3", "grok-4.20-0309-reasoning", "grok-4.20-0309-non-reasoning"],
|
|
58
|
-
groq: ["llama-3.3-70b-versatile", "llama-3.1-8b-instant", "qwen-
|
|
58
|
+
groq: ["llama-3.3-70b-versatile", "llama-3.1-8b-instant", "qwen/qwen3-32b"],
|
|
59
59
|
cohere: ["command-a-03-2025", "command-r-plus-08-2024", "command-r-08-2024"],
|
|
60
60
|
minimax: ["MiniMax-M2.5", "MiniMax-M2.1", "MiniMax-M2"],
|
|
61
61
|
glm: ["glm-4.7", "glm-4.5"],
|
|
@@ -33,7 +33,7 @@ const CURATED_MODEL_IDS_BY_PROVIDER = {
|
|
|
33
33
|
"gemini-2.5-flash"
|
|
34
34
|
],
|
|
35
35
|
xai: ["grok-4.3", "grok-4.20-0309-reasoning", "grok-4.20-0309-non-reasoning"],
|
|
36
|
-
groq: ["llama-3.3-70b-versatile", "llama-3.1-8b-instant", "qwen-
|
|
36
|
+
groq: ["llama-3.3-70b-versatile", "llama-3.1-8b-instant", "qwen/qwen3-32b"],
|
|
37
37
|
cohere: ["command-a-03-2025", "command-r-plus-08-2024", "command-r-08-2024"],
|
|
38
38
|
minimax: ["MiniMax-M2.5", "MiniMax-M2.1", "MiniMax-M2"],
|
|
39
39
|
glm: ["glm-4.7", "glm-4.5"],
|
|
@@ -57,6 +57,7 @@ function getSelectedReasoningVariant(config) {
|
|
|
57
57
|
function buildAnthropicProviderOptions(config) {
|
|
58
58
|
const { model, reasoningVariant, budgetTokens, capable } = config;
|
|
59
59
|
const adaptiveThinking = (0, import_llm.isAnthropicAdaptiveThinkingModel)(model);
|
|
60
|
+
const summarizedAdaptiveThinking = (0, import_llm.isAnthropicAlwaysAdaptiveThinkingModel)(model) || (0, import_llm.isAnthropicOpusXhighThinkingModel)(model);
|
|
60
61
|
if (adaptiveThinking) {
|
|
61
62
|
if (reasoningVariant === "disabled") {
|
|
62
63
|
return {
|
|
@@ -72,7 +73,10 @@ function buildAnthropicProviderOptions(config) {
|
|
|
72
73
|
anthropic: {
|
|
73
74
|
cacheControl: ANTHROPIC_CACHE_CONTROL,
|
|
74
75
|
sendReasoning: true,
|
|
75
|
-
thinking: {
|
|
76
|
+
thinking: {
|
|
77
|
+
type: "adaptive",
|
|
78
|
+
...summarizedAdaptiveThinking ? { display: "summarized" } : {}
|
|
79
|
+
},
|
|
76
80
|
...effort !== void 0 && { effort }
|
|
77
81
|
}
|
|
78
82
|
};
|
|
@@ -134,8 +138,7 @@ function buildOpenRouterProviderOptions(config) {
|
|
|
134
138
|
}
|
|
135
139
|
return void 0;
|
|
136
140
|
}
|
|
137
|
-
const
|
|
138
|
-
const effort = explicitEffort ?? (profile.paradigm === "adaptive-effort" && reasoningVariant === "max" ? "xhigh" : void 0);
|
|
141
|
+
const effort = toOpenAIReasoningEffort(reasoningVariant);
|
|
139
142
|
return {
|
|
140
143
|
[provider]: {
|
|
141
144
|
include_reasoning: true,
|
|
@@ -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,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,MAAM,YAAY,CAAC;AAelE,MAAM,WAAW,qBAAqB;IAClC,QAAQ,EAAE,WAAW,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAC9C;AA6LD,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,CA4IrD"}
|
|
@@ -3,7 +3,9 @@ import {
|
|
|
3
3
|
ANTHROPIC_INTERLEAVED_THINKING_BETA,
|
|
4
4
|
getGoogleReasoningBudgetTokens,
|
|
5
5
|
getReasoningProfile,
|
|
6
|
+
isAnthropicAlwaysAdaptiveThinkingModel,
|
|
6
7
|
isAnthropicAdaptiveThinkingModel,
|
|
8
|
+
isAnthropicOpusXhighThinkingModel,
|
|
7
9
|
isOpenRouterGatewayProvider,
|
|
8
10
|
isReasoningCapableModel,
|
|
9
11
|
supportsAnthropicInterleavedThinking,
|
|
@@ -43,6 +45,7 @@ function getSelectedReasoningVariant(config) {
|
|
|
43
45
|
function buildAnthropicProviderOptions(config) {
|
|
44
46
|
const { model, reasoningVariant, budgetTokens, capable } = config;
|
|
45
47
|
const adaptiveThinking = isAnthropicAdaptiveThinkingModel(model);
|
|
48
|
+
const summarizedAdaptiveThinking = isAnthropicAlwaysAdaptiveThinkingModel(model) || isAnthropicOpusXhighThinkingModel(model);
|
|
46
49
|
if (adaptiveThinking) {
|
|
47
50
|
if (reasoningVariant === "disabled") {
|
|
48
51
|
return {
|
|
@@ -58,7 +61,10 @@ function buildAnthropicProviderOptions(config) {
|
|
|
58
61
|
anthropic: {
|
|
59
62
|
cacheControl: ANTHROPIC_CACHE_CONTROL,
|
|
60
63
|
sendReasoning: true,
|
|
61
|
-
thinking: {
|
|
64
|
+
thinking: {
|
|
65
|
+
type: "adaptive",
|
|
66
|
+
...summarizedAdaptiveThinking ? { display: "summarized" } : {}
|
|
67
|
+
},
|
|
62
68
|
...effort !== void 0 && { effort }
|
|
63
69
|
}
|
|
64
70
|
};
|
|
@@ -120,8 +126,7 @@ function buildOpenRouterProviderOptions(config) {
|
|
|
120
126
|
}
|
|
121
127
|
return void 0;
|
|
122
128
|
}
|
|
123
|
-
const
|
|
124
|
-
const effort = explicitEffort ?? (profile.paradigm === "adaptive-effort" && reasoningVariant === "max" ? "xhigh" : void 0);
|
|
129
|
+
const effort = toOpenAIReasoningEffort(reasoningVariant);
|
|
125
130
|
return {
|
|
126
131
|
[provider]: {
|
|
127
132
|
include_reasoning: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexto/core",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"nanoid": "^5.1.6",
|
|
158
158
|
"winston": "^3.17.0",
|
|
159
159
|
"yaml": "^2.8.3",
|
|
160
|
-
"@dexto/llm": "1.8.
|
|
160
|
+
"@dexto/llm": "1.8.9"
|
|
161
161
|
},
|
|
162
162
|
"devDependencies": {
|
|
163
163
|
"@opentelemetry/context-async-hooks": "^1.28.0",
|