@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.js
CHANGED
|
@@ -6234,10 +6234,12 @@ function buildDefaultSummarizer(opts) {
|
|
|
6234
6234
|
return async (messages) => {
|
|
6235
6235
|
registerBuiltins();
|
|
6236
6236
|
const modelPrefix = opts.agentModel.includes("/") ? opts.agentModel.slice(0, opts.agentModel.indexOf("/")) : void 0;
|
|
6237
|
+
const prefixProfile = modelPrefix !== void 0 ? getProviderProfile(modelPrefix) : void 0;
|
|
6238
|
+
const prefixUsable = prefixProfile !== void 0 && (prefixProfile.authType !== "api_key" || prefixProfile.envVars.some((v) => (process.env[v] ?? "").length > 0));
|
|
6237
6239
|
const route = resolveSummarizerRoute({
|
|
6238
6240
|
keyProvider: inferProviderFromApiKey(opts.apiKey),
|
|
6239
6241
|
modelPrefix,
|
|
6240
|
-
prefixHasProfile:
|
|
6242
|
+
prefixHasProfile: prefixUsable,
|
|
6241
6243
|
envProvider: detectPrimaryProvider()
|
|
6242
6244
|
});
|
|
6243
6245
|
const provider = route.provider;
|