@theokit/sdk 4.16.6 → 4.16.7
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/CHANGELOG.md +6 -0
- package/dist/cron.cjs +3 -1
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.js +3 -1
- package/dist/cron.js.map +1 -1
- package/dist/eval.cjs +3 -1
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +3 -1
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6237,10 +6237,12 @@ function buildDefaultSummarizer(opts) {
|
|
|
6237
6237
|
return async (messages) => {
|
|
6238
6238
|
registerBuiltins();
|
|
6239
6239
|
const modelPrefix = opts.agentModel.includes("/") ? opts.agentModel.slice(0, opts.agentModel.indexOf("/")) : void 0;
|
|
6240
|
+
const prefixProfile = modelPrefix !== void 0 ? getProviderProfile(modelPrefix) : void 0;
|
|
6241
|
+
const prefixUsable = prefixProfile !== void 0 && (prefixProfile.authType !== "api_key" || prefixProfile.envVars.some((v) => (process.env[v] ?? "").length > 0));
|
|
6240
6242
|
const route = resolveSummarizerRoute({
|
|
6241
6243
|
keyProvider: inferProviderFromApiKey(opts.apiKey),
|
|
6242
6244
|
modelPrefix,
|
|
6243
|
-
prefixHasProfile:
|
|
6245
|
+
prefixHasProfile: prefixUsable,
|
|
6244
6246
|
envProvider: detectPrimaryProvider()
|
|
6245
6247
|
});
|
|
6246
6248
|
const provider = route.provider;
|