@dexto/llm 1.8.8 → 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.
- package/dist/index.cjs +9 -3
- package/dist/index.js +9 -3
- package/dist/reasoning/profile.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21617,11 +21617,17 @@ function toGatewayReasoningProfile(nativeProfile) {
|
|
|
21617
21617
|
if (!nativeProfile.capable) {
|
|
21618
21618
|
return nonCapableProfile();
|
|
21619
21619
|
}
|
|
21620
|
+
const variants = nativeProfile.paradigm === "adaptive-effort" ? nativeProfile.variants.filter((variant) => variant.id !== "max") : nativeProfile.variants.map((variant) => ({ ...variant }));
|
|
21621
|
+
const defaultVariant = (
|
|
21622
|
+
// Variants are ordered lowest to highest effort, so this picks the strongest gateway-safe fallback.
|
|
21623
|
+
nativeProfile.defaultVariant === "max" ? variants.at(-1)?.id : nativeProfile.defaultVariant
|
|
21624
|
+
);
|
|
21620
21625
|
return {
|
|
21621
21626
|
...nativeProfile,
|
|
21622
|
-
variants
|
|
21623
|
-
supportedVariants:
|
|
21624
|
-
supportsBudgetTokens: true
|
|
21627
|
+
variants,
|
|
21628
|
+
supportedVariants: variants.map((variant) => variant.id),
|
|
21629
|
+
supportsBudgetTokens: true,
|
|
21630
|
+
...defaultVariant !== void 0 && { defaultVariant }
|
|
21625
21631
|
};
|
|
21626
21632
|
}
|
|
21627
21633
|
function getReasoningProfile(provider, model) {
|
package/dist/index.js
CHANGED
|
@@ -21532,11 +21532,17 @@ function toGatewayReasoningProfile(nativeProfile) {
|
|
|
21532
21532
|
if (!nativeProfile.capable) {
|
|
21533
21533
|
return nonCapableProfile();
|
|
21534
21534
|
}
|
|
21535
|
+
const variants = nativeProfile.paradigm === "adaptive-effort" ? nativeProfile.variants.filter((variant) => variant.id !== "max") : nativeProfile.variants.map((variant) => ({ ...variant }));
|
|
21536
|
+
const defaultVariant = (
|
|
21537
|
+
// Variants are ordered lowest to highest effort, so this picks the strongest gateway-safe fallback.
|
|
21538
|
+
nativeProfile.defaultVariant === "max" ? variants.at(-1)?.id : nativeProfile.defaultVariant
|
|
21539
|
+
);
|
|
21535
21540
|
return {
|
|
21536
21541
|
...nativeProfile,
|
|
21537
|
-
variants
|
|
21538
|
-
supportedVariants:
|
|
21539
|
-
supportsBudgetTokens: true
|
|
21542
|
+
variants,
|
|
21543
|
+
supportedVariants: variants.map((variant) => variant.id),
|
|
21544
|
+
supportsBudgetTokens: true,
|
|
21545
|
+
...defaultVariant !== void 0 && { defaultVariant }
|
|
21540
21546
|
};
|
|
21541
21547
|
}
|
|
21542
21548
|
function getReasoningProfile(provider, model) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/reasoning/profile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAa/C,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEhF,YAAY,EACR,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,GACzB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/reasoning/profile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAa/C,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEhF,YAAY,EACR,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,GACzB,MAAM,sBAAsB,CAAC;AA6F9B;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAY1F;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAE5F"}
|