@dexto/core 1.8.0 → 1.8.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.
- package/dist/agent/DextoAgent.cjs +6 -15
- package/dist/agent/DextoAgent.d.ts +2 -2
- package/dist/agent/DextoAgent.d.ts.map +1 -1
- package/dist/agent/DextoAgent.js +4 -4
- package/dist/agent/types.d.ts +1 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/context/compaction/overflow.d.ts +1 -1
- package/dist/context/compaction/overflow.d.ts.map +1 -1
- package/dist/context/manager.cjs +8 -8
- package/dist/context/manager.d.ts +1 -1
- package/dist/context/manager.d.ts.map +1 -1
- package/dist/context/manager.js +1 -1
- package/dist/context/types.d.ts +1 -1
- package/dist/context/types.d.ts.map +1 -1
- package/dist/context/utils.cjs +3 -3
- package/dist/context/utils.d.ts +1 -1
- package/dist/context/utils.d.ts.map +1 -1
- package/dist/context/utils.js +1 -1
- package/dist/events/index.d.ts +2 -2
- package/dist/events/index.d.ts.map +1 -1
- package/dist/index.browser.cjs +9 -9
- package/dist/index.browser.d.ts +4 -4
- package/dist/index.browser.d.ts.map +1 -1
- package/dist/index.browser.js +1 -1
- package/dist/llm/curation-config.cjs +3 -3
- package/dist/llm/curation-config.d.ts +1 -1
- package/dist/llm/curation-config.js +3 -3
- package/dist/llm/curation.cjs +2 -2
- package/dist/llm/curation.d.ts +2 -2
- package/dist/llm/curation.d.ts.map +1 -1
- package/dist/llm/curation.js +1 -1
- package/dist/llm/errors.cjs +3 -3
- package/dist/llm/errors.d.ts +1 -1
- package/dist/llm/errors.d.ts.map +1 -1
- package/dist/llm/errors.js +1 -1
- package/dist/llm/executor/provider-options.cjs +22 -25
- package/dist/llm/executor/provider-options.d.ts +1 -1
- package/dist/llm/executor/provider-options.d.ts.map +1 -1
- package/dist/llm/executor/provider-options.js +17 -16
- package/dist/llm/executor/stream-processor.d.ts +1 -1
- package/dist/llm/executor/stream-processor.d.ts.map +1 -1
- package/dist/llm/executor/turn-executor.d.ts +1 -1
- package/dist/llm/executor/turn-executor.d.ts.map +1 -1
- package/dist/llm/executor/types.d.ts +1 -1
- package/dist/llm/executor/types.d.ts.map +1 -1
- package/dist/llm/formatters/vercel.cjs +2 -2
- package/dist/llm/formatters/vercel.d.ts +1 -1
- package/dist/llm/formatters/vercel.d.ts.map +1 -1
- package/dist/llm/index.cjs +0 -4
- package/dist/llm/index.d.ts +0 -2
- package/dist/llm/index.d.ts.map +1 -1
- package/dist/llm/index.js +0 -2
- package/dist/llm/registry/auto-update.cjs +5 -5
- package/dist/llm/registry/auto-update.d.ts.map +1 -1
- package/dist/llm/registry/auto-update.js +2 -2
- package/dist/llm/registry/index.cjs +96 -789
- package/dist/llm/registry/index.d.ts +4 -323
- package/dist/llm/registry/index.d.ts.map +1 -1
- package/dist/llm/registry/index.js +99 -762
- package/dist/llm/registry/sync.d.ts +2 -2
- package/dist/llm/registry/sync.d.ts.map +1 -1
- package/dist/llm/resolver.cjs +7 -6
- package/dist/llm/resolver.d.ts +1 -1
- package/dist/llm/resolver.js +4 -4
- package/dist/llm/schemas.cjs +14 -14
- package/dist/llm/schemas.d.ts +1 -1
- package/dist/llm/schemas.d.ts.map +1 -1
- package/dist/llm/schemas.js +5 -4
- package/dist/llm/services/factory.cjs +8 -11
- package/dist/llm/services/factory.js +10 -11
- package/dist/llm/services/types.d.ts +1 -1
- package/dist/llm/services/types.d.ts.map +1 -1
- package/dist/llm/usage-metadata.cjs +3 -3
- package/dist/llm/usage-metadata.d.ts +2 -2
- package/dist/llm/usage-metadata.d.ts.map +1 -1
- package/dist/llm/usage-metadata.js +1 -4
- package/dist/llm/usage-summary.d.ts +1 -1
- package/dist/llm/validation.cjs +4 -4
- package/dist/llm/validation.d.ts +1 -1
- package/dist/llm/validation.js +1 -1
- package/dist/session/session-manager.d.ts +1 -1
- package/dist/session/session-manager.d.ts.map +1 -1
- package/dist/utils/api-key-resolver.d.ts +1 -1
- package/dist/utils/api-key-resolver.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/llm/reasoning/anthropic-betas.cjs +0 -31
- package/dist/llm/reasoning/anthropic-betas.d.ts +0 -3
- package/dist/llm/reasoning/anthropic-betas.d.ts.map +0 -1
- package/dist/llm/reasoning/anthropic-betas.js +0 -7
- package/dist/llm/reasoning/anthropic-thinking.cjs +0 -79
- package/dist/llm/reasoning/anthropic-thinking.d.ts +0 -15
- package/dist/llm/reasoning/anthropic-thinking.d.ts.map +0 -1
- package/dist/llm/reasoning/anthropic-thinking.js +0 -52
- package/dist/llm/reasoning/openai-reasoning-effort.cjs +0 -86
- package/dist/llm/reasoning/openai-reasoning-effort.d.ts +0 -5
- package/dist/llm/reasoning/openai-reasoning-effort.d.ts.map +0 -1
- package/dist/llm/reasoning/openai-reasoning-effort.js +0 -61
- package/dist/llm/reasoning/profile.cjs +0 -113
- package/dist/llm/reasoning/profile.d.ts +0 -13
- package/dist/llm/reasoning/profile.d.ts.map +0 -1
- package/dist/llm/reasoning/profile.js +0 -92
- package/dist/llm/reasoning/profiles/anthropic.cjs +0 -61
- package/dist/llm/reasoning/profiles/anthropic.d.ts +0 -8
- package/dist/llm/reasoning/profiles/anthropic.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/anthropic.js +0 -45
- package/dist/llm/reasoning/profiles/bedrock.cjs +0 -54
- package/dist/llm/reasoning/profiles/bedrock.d.ts +0 -3
- package/dist/llm/reasoning/profiles/bedrock.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/bedrock.js +0 -36
- package/dist/llm/reasoning/profiles/google.cjs +0 -45
- package/dist/llm/reasoning/profiles/google.d.ts +0 -9
- package/dist/llm/reasoning/profiles/google.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/google.js +0 -21
- package/dist/llm/reasoning/profiles/openai-compatible.cjs +0 -39
- package/dist/llm/reasoning/profiles/openai-compatible.d.ts +0 -3
- package/dist/llm/reasoning/profiles/openai-compatible.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/openai-compatible.js +0 -16
- package/dist/llm/reasoning/profiles/openai.cjs +0 -41
- package/dist/llm/reasoning/profiles/openai.d.ts +0 -3
- package/dist/llm/reasoning/profiles/openai.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/openai.js +0 -18
- package/dist/llm/reasoning/profiles/openrouter.cjs +0 -83
- package/dist/llm/reasoning/profiles/openrouter.d.ts +0 -10
- package/dist/llm/reasoning/profiles/openrouter.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/openrouter.js +0 -59
- package/dist/llm/reasoning/profiles/shared.cjs +0 -80
- package/dist/llm/reasoning/profiles/shared.d.ts +0 -25
- package/dist/llm/reasoning/profiles/shared.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/shared.js +0 -53
- package/dist/llm/reasoning/profiles/vertex.cjs +0 -46
- package/dist/llm/reasoning/profiles/vertex.d.ts +0 -3
- package/dist/llm/reasoning/profiles/vertex.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/vertex.js +0 -23
- package/dist/llm/registry/models.generated.cjs +0 -10741
- package/dist/llm/registry/models.generated.d.ts +0 -2945
- package/dist/llm/registry/models.generated.d.ts.map +0 -1
- package/dist/llm/registry/models.generated.js +0 -10717
- package/dist/llm/registry/models.manual.cjs +0 -44
- package/dist/llm/registry/models.manual.d.ts +0 -22
- package/dist/llm/registry/models.manual.d.ts.map +0 -1
- package/dist/llm/registry/models.manual.js +0 -21
- package/dist/llm/types.cjs +0 -55
- package/dist/llm/types.d.ts +0 -39
- package/dist/llm/types.d.ts.map +0 -1
- package/dist/llm/types.js +0 -30
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var bedrock_exports = {};
|
|
20
|
-
__export(bedrock_exports, {
|
|
21
|
-
buildBedrockReasoningProfile: () => buildBedrockReasoningProfile
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(bedrock_exports);
|
|
24
|
-
var import_shared = require("./shared.js");
|
|
25
|
-
function isBedrockAnthropicModel(model) {
|
|
26
|
-
return model.toLowerCase().includes("anthropic");
|
|
27
|
-
}
|
|
28
|
-
function isBedrockNovaModel(model) {
|
|
29
|
-
return model.toLowerCase().includes("nova");
|
|
30
|
-
}
|
|
31
|
-
function buildBedrockReasoningProfile(model) {
|
|
32
|
-
if (isBedrockAnthropicModel(model)) {
|
|
33
|
-
return (0, import_shared.buildBudgetProfile)({
|
|
34
|
-
includeDisabled: true,
|
|
35
|
-
supportsBudgetTokens: true
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
if (isBedrockNovaModel(model)) {
|
|
39
|
-
return (0, import_shared.withDefault)(
|
|
40
|
-
{
|
|
41
|
-
capable: true,
|
|
42
|
-
paradigm: "effort",
|
|
43
|
-
variants: [(0, import_shared.option)("disabled"), (0, import_shared.option)("low"), (0, import_shared.option)("medium"), (0, import_shared.option)("high")],
|
|
44
|
-
supportsBudgetTokens: false
|
|
45
|
-
},
|
|
46
|
-
"medium"
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
return (0, import_shared.nonCapableProfile)();
|
|
50
|
-
}
|
|
51
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
-
0 && (module.exports = {
|
|
53
|
-
buildBedrockReasoningProfile
|
|
54
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bedrock.d.ts","sourceRoot":"","sources":["../../../../src/llm/reasoning/profiles/bedrock.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,gBAAgB,EAExB,MAAM,aAAa,CAAC;AAUrB,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAqB5E"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import "../../../chunk-C6A6W6XS.js";
|
|
2
|
-
import {
|
|
3
|
-
buildBudgetProfile,
|
|
4
|
-
nonCapableProfile,
|
|
5
|
-
option,
|
|
6
|
-
withDefault
|
|
7
|
-
} from "./shared.js";
|
|
8
|
-
function isBedrockAnthropicModel(model) {
|
|
9
|
-
return model.toLowerCase().includes("anthropic");
|
|
10
|
-
}
|
|
11
|
-
function isBedrockNovaModel(model) {
|
|
12
|
-
return model.toLowerCase().includes("nova");
|
|
13
|
-
}
|
|
14
|
-
function buildBedrockReasoningProfile(model) {
|
|
15
|
-
if (isBedrockAnthropicModel(model)) {
|
|
16
|
-
return buildBudgetProfile({
|
|
17
|
-
includeDisabled: true,
|
|
18
|
-
supportsBudgetTokens: true
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
if (isBedrockNovaModel(model)) {
|
|
22
|
-
return withDefault(
|
|
23
|
-
{
|
|
24
|
-
capable: true,
|
|
25
|
-
paradigm: "effort",
|
|
26
|
-
variants: [option("disabled"), option("low"), option("medium"), option("high")],
|
|
27
|
-
supportsBudgetTokens: false
|
|
28
|
-
},
|
|
29
|
-
"medium"
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
return nonCapableProfile();
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
buildBedrockReasoningProfile
|
|
36
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var google_exports = {};
|
|
20
|
-
__export(google_exports, {
|
|
21
|
-
buildGoogleReasoningProfile: () => buildGoogleReasoningProfile,
|
|
22
|
-
isGemini3Model: () => isGemini3Model
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(google_exports);
|
|
25
|
-
var import_shared = require("./shared.js");
|
|
26
|
-
function isGemini3Model(model) {
|
|
27
|
-
return model.toLowerCase().includes("gemini-3");
|
|
28
|
-
}
|
|
29
|
-
function buildGoogleReasoningProfile(config) {
|
|
30
|
-
if (isGemini3Model(config.model)) {
|
|
31
|
-
return (0, import_shared.buildThinkingLevelProfile)({
|
|
32
|
-
includeDisabled: config.includeDisabled,
|
|
33
|
-
supportsBudgetTokens: config.supportsBudgetTokensForThinkingLevelParadigm
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
return (0, import_shared.buildBudgetProfile)({
|
|
37
|
-
includeDisabled: config.includeDisabled,
|
|
38
|
-
supportsBudgetTokens: config.supportsBudgetTokensForBudgetParadigm
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
-
0 && (module.exports = {
|
|
43
|
-
buildGoogleReasoningProfile,
|
|
44
|
-
isGemini3Model
|
|
45
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ReasoningProfile } from './shared.js';
|
|
2
|
-
export declare function isGemini3Model(model: string): boolean;
|
|
3
|
-
export declare function buildGoogleReasoningProfile(config: {
|
|
4
|
-
model: string;
|
|
5
|
-
includeDisabled: boolean;
|
|
6
|
-
supportsBudgetTokensForBudgetParadigm: boolean;
|
|
7
|
-
supportsBudgetTokensForThinkingLevelParadigm: boolean;
|
|
8
|
-
}): ReasoningProfile;
|
|
9
|
-
//# sourceMappingURL=google.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../../src/llm/reasoning/profiles/google.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiD,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEnG,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;IACzB,qCAAqC,EAAE,OAAO,CAAC;IAC/C,4CAA4C,EAAE,OAAO,CAAC;CACzD,GAAG,gBAAgB,CAYnB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import "../../../chunk-C6A6W6XS.js";
|
|
2
|
-
import { buildBudgetProfile, buildThinkingLevelProfile } from "./shared.js";
|
|
3
|
-
function isGemini3Model(model) {
|
|
4
|
-
return model.toLowerCase().includes("gemini-3");
|
|
5
|
-
}
|
|
6
|
-
function buildGoogleReasoningProfile(config) {
|
|
7
|
-
if (isGemini3Model(config.model)) {
|
|
8
|
-
return buildThinkingLevelProfile({
|
|
9
|
-
includeDisabled: config.includeDisabled,
|
|
10
|
-
supportsBudgetTokens: config.supportsBudgetTokensForThinkingLevelParadigm
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
return buildBudgetProfile({
|
|
14
|
-
includeDisabled: config.includeDisabled,
|
|
15
|
-
supportsBudgetTokens: config.supportsBudgetTokensForBudgetParadigm
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
buildGoogleReasoningProfile,
|
|
20
|
-
isGemini3Model
|
|
21
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var openai_compatible_exports = {};
|
|
20
|
-
__export(openai_compatible_exports, {
|
|
21
|
-
buildOpenAICompatibleReasoningProfile: () => buildOpenAICompatibleReasoningProfile
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(openai_compatible_exports);
|
|
24
|
-
var import_shared = require("./shared.js");
|
|
25
|
-
function buildOpenAICompatibleReasoningProfile() {
|
|
26
|
-
return (0, import_shared.withDefault)(
|
|
27
|
-
{
|
|
28
|
-
capable: true,
|
|
29
|
-
paradigm: "effort",
|
|
30
|
-
variants: [(0, import_shared.option)("none"), (0, import_shared.option)("low"), (0, import_shared.option)("medium"), (0, import_shared.option)("high")],
|
|
31
|
-
supportsBudgetTokens: false
|
|
32
|
-
},
|
|
33
|
-
"medium"
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
-
0 && (module.exports = {
|
|
38
|
-
buildOpenAICompatibleReasoningProfile
|
|
39
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"openai-compatible.d.ts","sourceRoot":"","sources":["../../../../src/llm/reasoning/profiles/openai-compatible.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,gBAAgB,EAAe,MAAM,aAAa,CAAC;AAEzE,wBAAgB,qCAAqC,IAAI,gBAAgB,CAUxE"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import "../../../chunk-C6A6W6XS.js";
|
|
2
|
-
import { option, withDefault } from "./shared.js";
|
|
3
|
-
function buildOpenAICompatibleReasoningProfile() {
|
|
4
|
-
return withDefault(
|
|
5
|
-
{
|
|
6
|
-
capable: true,
|
|
7
|
-
paradigm: "effort",
|
|
8
|
-
variants: [option("none"), option("low"), option("medium"), option("high")],
|
|
9
|
-
supportsBudgetTokens: false
|
|
10
|
-
},
|
|
11
|
-
"medium"
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
buildOpenAICompatibleReasoningProfile
|
|
16
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var openai_exports = {};
|
|
20
|
-
__export(openai_exports, {
|
|
21
|
-
buildOpenAIReasoningProfile: () => buildOpenAIReasoningProfile
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(openai_exports);
|
|
24
|
-
var import_openai_reasoning_effort = require("../openai-reasoning-effort.js");
|
|
25
|
-
var import_shared = require("./shared.js");
|
|
26
|
-
function buildOpenAIReasoningProfile(model) {
|
|
27
|
-
const efforts = (0, import_openai_reasoning_effort.getSupportedOpenAIReasoningEfforts)(model);
|
|
28
|
-
return (0, import_shared.withDefault)(
|
|
29
|
-
{
|
|
30
|
-
capable: true,
|
|
31
|
-
paradigm: "effort",
|
|
32
|
-
variants: efforts.map((effort) => (0, import_shared.option)(effort)),
|
|
33
|
-
supportsBudgetTokens: false
|
|
34
|
-
},
|
|
35
|
-
"medium"
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
-
0 && (module.exports = {
|
|
40
|
-
buildOpenAIReasoningProfile
|
|
41
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../../src/llm/reasoning/profiles/openai.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,gBAAgB,EAAe,MAAM,aAAa,CAAC;AAEzE,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAW3E"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import "../../../chunk-C6A6W6XS.js";
|
|
2
|
-
import { getSupportedOpenAIReasoningEfforts } from "../openai-reasoning-effort.js";
|
|
3
|
-
import { option, withDefault } from "./shared.js";
|
|
4
|
-
function buildOpenAIReasoningProfile(model) {
|
|
5
|
-
const efforts = getSupportedOpenAIReasoningEfforts(model);
|
|
6
|
-
return withDefault(
|
|
7
|
-
{
|
|
8
|
-
capable: true,
|
|
9
|
-
paradigm: "effort",
|
|
10
|
-
variants: efforts.map((effort) => option(effort)),
|
|
11
|
-
supportsBudgetTokens: false
|
|
12
|
-
},
|
|
13
|
-
"medium"
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
buildOpenAIReasoningProfile
|
|
18
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var openrouter_exports = {};
|
|
20
|
-
__export(openrouter_exports, {
|
|
21
|
-
getOpenRouterReasoningTarget: () => getOpenRouterReasoningTarget,
|
|
22
|
-
isOpenRouterGatewayProvider: () => isOpenRouterGatewayProvider
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(openrouter_exports);
|
|
25
|
-
const OPENROUTER_REASONING_EXCLUDED_FAMILIES = [
|
|
26
|
-
"deepseek",
|
|
27
|
-
"minimax",
|
|
28
|
-
"glm",
|
|
29
|
-
"mistral",
|
|
30
|
-
"kimi",
|
|
31
|
-
// Temporary workaround for OpenRouter models that intermittently error with reasoning params.
|
|
32
|
-
// Keep this explicit so it's easy to remove once upstream stabilizes.
|
|
33
|
-
"k2p5"
|
|
34
|
-
];
|
|
35
|
-
const OPENROUTER_REASONING_TARGET_RULES = {
|
|
36
|
-
openai: {
|
|
37
|
-
upstreamProvider: "openai",
|
|
38
|
-
acceptsModelId: () => true
|
|
39
|
-
},
|
|
40
|
-
anthropic: {
|
|
41
|
-
upstreamProvider: "anthropic",
|
|
42
|
-
acceptsModelId: () => true
|
|
43
|
-
},
|
|
44
|
-
google: {
|
|
45
|
-
upstreamProvider: "google",
|
|
46
|
-
acceptsModelId: (modelId) => modelId.includes("gemini-3")
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
function isOpenRouterGatewayProvider(provider) {
|
|
50
|
-
return provider === "openrouter" || provider === "dexto-nova";
|
|
51
|
-
}
|
|
52
|
-
function isOpenRouterReasoningAllowlistedFamily(modelLower) {
|
|
53
|
-
return modelLower.includes("gpt") || modelLower.includes("claude") || modelLower.includes("gemini-3");
|
|
54
|
-
}
|
|
55
|
-
function splitGatewayModelId(modelLower) {
|
|
56
|
-
const slashIndex = modelLower.indexOf("/");
|
|
57
|
-
if (slashIndex <= 0 || slashIndex >= modelLower.length - 1) return null;
|
|
58
|
-
const providerPrefix = modelLower.slice(0, slashIndex);
|
|
59
|
-
const modelId = modelLower.slice(slashIndex + 1);
|
|
60
|
-
return { providerPrefix, modelId };
|
|
61
|
-
}
|
|
62
|
-
function getOpenRouterReasoningTarget(model) {
|
|
63
|
-
const modelLower = model.toLowerCase();
|
|
64
|
-
for (const family of OPENROUTER_REASONING_EXCLUDED_FAMILIES) {
|
|
65
|
-
if (modelLower.includes(family)) return null;
|
|
66
|
-
}
|
|
67
|
-
if (!isOpenRouterReasoningAllowlistedFamily(modelLower)) {
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
70
|
-
const split = splitGatewayModelId(modelLower);
|
|
71
|
-
if (!split) return null;
|
|
72
|
-
const { providerPrefix, modelId } = split;
|
|
73
|
-
const rule = OPENROUTER_REASONING_TARGET_RULES[providerPrefix];
|
|
74
|
-
if (!rule || !rule.acceptsModelId(modelId, modelLower)) {
|
|
75
|
-
return null;
|
|
76
|
-
}
|
|
77
|
-
return { upstreamProvider: rule.upstreamProvider, modelId };
|
|
78
|
-
}
|
|
79
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
80
|
-
0 && (module.exports = {
|
|
81
|
-
getOpenRouterReasoningTarget,
|
|
82
|
-
isOpenRouterGatewayProvider
|
|
83
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { LLMProvider } from '../../types.js';
|
|
2
|
-
type OpenRouterGatewayProvider = 'openrouter' | 'dexto-nova';
|
|
3
|
-
export type OpenRouterReasoningTarget = {
|
|
4
|
-
upstreamProvider: LLMProvider;
|
|
5
|
-
modelId: string;
|
|
6
|
-
};
|
|
7
|
-
export declare function isOpenRouterGatewayProvider(provider: LLMProvider): provider is OpenRouterGatewayProvider;
|
|
8
|
-
export declare function getOpenRouterReasoningTarget(model: string): OpenRouterReasoningTarget | null;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=openrouter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"openrouter.d.ts","sourceRoot":"","sources":["../../../../src/llm/reasoning/profiles/openrouter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAalD,KAAK,yBAAyB,GAAG,YAAY,GAAG,YAAY,CAAC;AAM7D,MAAM,MAAM,yBAAyB,GAAG;IACpC,gBAAgB,EAAE,WAAW,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAiBF,wBAAgB,2BAA2B,CACvC,QAAQ,EAAE,WAAW,GACtB,QAAQ,IAAI,yBAAyB,CAEvC;AAoBD,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,yBAAyB,GAAG,IAAI,CAqB5F"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import "../../../chunk-C6A6W6XS.js";
|
|
2
|
-
const OPENROUTER_REASONING_EXCLUDED_FAMILIES = [
|
|
3
|
-
"deepseek",
|
|
4
|
-
"minimax",
|
|
5
|
-
"glm",
|
|
6
|
-
"mistral",
|
|
7
|
-
"kimi",
|
|
8
|
-
// Temporary workaround for OpenRouter models that intermittently error with reasoning params.
|
|
9
|
-
// Keep this explicit so it's easy to remove once upstream stabilizes.
|
|
10
|
-
"k2p5"
|
|
11
|
-
];
|
|
12
|
-
const OPENROUTER_REASONING_TARGET_RULES = {
|
|
13
|
-
openai: {
|
|
14
|
-
upstreamProvider: "openai",
|
|
15
|
-
acceptsModelId: () => true
|
|
16
|
-
},
|
|
17
|
-
anthropic: {
|
|
18
|
-
upstreamProvider: "anthropic",
|
|
19
|
-
acceptsModelId: () => true
|
|
20
|
-
},
|
|
21
|
-
google: {
|
|
22
|
-
upstreamProvider: "google",
|
|
23
|
-
acceptsModelId: (modelId) => modelId.includes("gemini-3")
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
function isOpenRouterGatewayProvider(provider) {
|
|
27
|
-
return provider === "openrouter" || provider === "dexto-nova";
|
|
28
|
-
}
|
|
29
|
-
function isOpenRouterReasoningAllowlistedFamily(modelLower) {
|
|
30
|
-
return modelLower.includes("gpt") || modelLower.includes("claude") || modelLower.includes("gemini-3");
|
|
31
|
-
}
|
|
32
|
-
function splitGatewayModelId(modelLower) {
|
|
33
|
-
const slashIndex = modelLower.indexOf("/");
|
|
34
|
-
if (slashIndex <= 0 || slashIndex >= modelLower.length - 1) return null;
|
|
35
|
-
const providerPrefix = modelLower.slice(0, slashIndex);
|
|
36
|
-
const modelId = modelLower.slice(slashIndex + 1);
|
|
37
|
-
return { providerPrefix, modelId };
|
|
38
|
-
}
|
|
39
|
-
function getOpenRouterReasoningTarget(model) {
|
|
40
|
-
const modelLower = model.toLowerCase();
|
|
41
|
-
for (const family of OPENROUTER_REASONING_EXCLUDED_FAMILIES) {
|
|
42
|
-
if (modelLower.includes(family)) return null;
|
|
43
|
-
}
|
|
44
|
-
if (!isOpenRouterReasoningAllowlistedFamily(modelLower)) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
const split = splitGatewayModelId(modelLower);
|
|
48
|
-
if (!split) return null;
|
|
49
|
-
const { providerPrefix, modelId } = split;
|
|
50
|
-
const rule = OPENROUTER_REASONING_TARGET_RULES[providerPrefix];
|
|
51
|
-
if (!rule || !rule.acceptsModelId(modelId, modelLower)) {
|
|
52
|
-
return null;
|
|
53
|
-
}
|
|
54
|
-
return { upstreamProvider: rule.upstreamProvider, modelId };
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
getOpenRouterReasoningTarget,
|
|
58
|
-
isOpenRouterGatewayProvider
|
|
59
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var shared_exports = {};
|
|
20
|
-
__export(shared_exports, {
|
|
21
|
-
buildBudgetProfile: () => buildBudgetProfile,
|
|
22
|
-
buildThinkingLevelProfile: () => buildThinkingLevelProfile,
|
|
23
|
-
nonCapableProfile: () => nonCapableProfile,
|
|
24
|
-
option: () => option,
|
|
25
|
-
withDefault: () => withDefault
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(shared_exports);
|
|
28
|
-
function option(id, label) {
|
|
29
|
-
return { id, label: label ?? id };
|
|
30
|
-
}
|
|
31
|
-
function withDefault(profile, preferredDefault) {
|
|
32
|
-
const hasPreferred = profile.variants.some((variant) => variant.id === preferredDefault);
|
|
33
|
-
const defaultVariant = hasPreferred ? preferredDefault : profile.variants[0]?.id;
|
|
34
|
-
return {
|
|
35
|
-
...profile,
|
|
36
|
-
supportedVariants: profile.variants.map((variant) => variant.id),
|
|
37
|
-
...defaultVariant !== void 0 && { defaultVariant }
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function nonCapableProfile() {
|
|
41
|
-
return {
|
|
42
|
-
capable: false,
|
|
43
|
-
paradigm: "none",
|
|
44
|
-
variants: [],
|
|
45
|
-
supportedVariants: [],
|
|
46
|
-
supportsBudgetTokens: false
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function buildBudgetProfile(config) {
|
|
50
|
-
const variants = config.includeDisabled ? [option("disabled"), option("enabled")] : [option("enabled")];
|
|
51
|
-
return withDefault(
|
|
52
|
-
{
|
|
53
|
-
capable: true,
|
|
54
|
-
paradigm: "budget",
|
|
55
|
-
variants,
|
|
56
|
-
supportsBudgetTokens: config.supportsBudgetTokens
|
|
57
|
-
},
|
|
58
|
-
"enabled"
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
function buildThinkingLevelProfile(config) {
|
|
62
|
-
const variants = config.includeDisabled ? [option("disabled"), option("minimal"), option("low"), option("medium"), option("high")] : [option("minimal"), option("low"), option("medium"), option("high")];
|
|
63
|
-
return withDefault(
|
|
64
|
-
{
|
|
65
|
-
capable: true,
|
|
66
|
-
paradigm: "thinking-level",
|
|
67
|
-
variants,
|
|
68
|
-
supportsBudgetTokens: config.supportsBudgetTokens
|
|
69
|
-
},
|
|
70
|
-
"medium"
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
74
|
-
0 && (module.exports = {
|
|
75
|
-
buildBudgetProfile,
|
|
76
|
-
buildThinkingLevelProfile,
|
|
77
|
-
nonCapableProfile,
|
|
78
|
-
option,
|
|
79
|
-
withDefault
|
|
80
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type ReasoningParadigm = 'effort' | 'adaptive-effort' | 'thinking-level' | 'budget' | 'none';
|
|
2
|
-
export type ReasoningVariantOption = {
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
};
|
|
6
|
-
export type ReasoningProfile = {
|
|
7
|
-
capable: boolean;
|
|
8
|
-
paradigm: ReasoningParadigm;
|
|
9
|
-
variants: ReasoningVariantOption[];
|
|
10
|
-
supportedVariants: string[];
|
|
11
|
-
defaultVariant?: string;
|
|
12
|
-
supportsBudgetTokens: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare function option(id: string, label?: string): ReasoningVariantOption;
|
|
15
|
-
export declare function withDefault(profile: Omit<ReasoningProfile, 'defaultVariant' | 'supportedVariants'>, preferredDefault: string): ReasoningProfile;
|
|
16
|
-
export declare function nonCapableProfile(): ReasoningProfile;
|
|
17
|
-
export declare function buildBudgetProfile(config: {
|
|
18
|
-
includeDisabled: boolean;
|
|
19
|
-
supportsBudgetTokens: boolean;
|
|
20
|
-
}): ReasoningProfile;
|
|
21
|
-
export declare function buildThinkingLevelProfile(config: {
|
|
22
|
-
includeDisabled: boolean;
|
|
23
|
-
supportsBudgetTokens: boolean;
|
|
24
|
-
}): ReasoningProfile;
|
|
25
|
-
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/llm/reasoning/profiles/shared.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,iBAAiB,GAAG,gBAAgB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEpG,MAAM,MAAM,sBAAsB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,EAAE,sBAAsB,EAAE,CAAC;IACnC,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,wBAAgB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAEzE;AAED,wBAAgB,WAAW,CACvB,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,mBAAmB,CAAC,EACvE,gBAAgB,EAAE,MAAM,GACzB,gBAAgB,CAQlB;AAED,wBAAgB,iBAAiB,IAAI,gBAAgB,CAQpD;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IACvC,eAAe,EAAE,OAAO,CAAC;IACzB,oBAAoB,EAAE,OAAO,CAAC;CACjC,GAAG,gBAAgB,CAcnB;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE;IAC9C,eAAe,EAAE,OAAO,CAAC;IACzB,oBAAoB,EAAE,OAAO,CAAC;CACjC,GAAG,gBAAgB,CAcnB"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import "../../../chunk-C6A6W6XS.js";
|
|
2
|
-
function option(id, label) {
|
|
3
|
-
return { id, label: label ?? id };
|
|
4
|
-
}
|
|
5
|
-
function withDefault(profile, preferredDefault) {
|
|
6
|
-
const hasPreferred = profile.variants.some((variant) => variant.id === preferredDefault);
|
|
7
|
-
const defaultVariant = hasPreferred ? preferredDefault : profile.variants[0]?.id;
|
|
8
|
-
return {
|
|
9
|
-
...profile,
|
|
10
|
-
supportedVariants: profile.variants.map((variant) => variant.id),
|
|
11
|
-
...defaultVariant !== void 0 && { defaultVariant }
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
function nonCapableProfile() {
|
|
15
|
-
return {
|
|
16
|
-
capable: false,
|
|
17
|
-
paradigm: "none",
|
|
18
|
-
variants: [],
|
|
19
|
-
supportedVariants: [],
|
|
20
|
-
supportsBudgetTokens: false
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function buildBudgetProfile(config) {
|
|
24
|
-
const variants = config.includeDisabled ? [option("disabled"), option("enabled")] : [option("enabled")];
|
|
25
|
-
return withDefault(
|
|
26
|
-
{
|
|
27
|
-
capable: true,
|
|
28
|
-
paradigm: "budget",
|
|
29
|
-
variants,
|
|
30
|
-
supportsBudgetTokens: config.supportsBudgetTokens
|
|
31
|
-
},
|
|
32
|
-
"enabled"
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
function buildThinkingLevelProfile(config) {
|
|
36
|
-
const variants = config.includeDisabled ? [option("disabled"), option("minimal"), option("low"), option("medium"), option("high")] : [option("minimal"), option("low"), option("medium"), option("high")];
|
|
37
|
-
return withDefault(
|
|
38
|
-
{
|
|
39
|
-
capable: true,
|
|
40
|
-
paradigm: "thinking-level",
|
|
41
|
-
variants,
|
|
42
|
-
supportsBudgetTokens: config.supportsBudgetTokens
|
|
43
|
-
},
|
|
44
|
-
"medium"
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
export {
|
|
48
|
-
buildBudgetProfile,
|
|
49
|
-
buildThinkingLevelProfile,
|
|
50
|
-
nonCapableProfile,
|
|
51
|
-
option,
|
|
52
|
-
withDefault
|
|
53
|
-
};
|