@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/cron.js
CHANGED
|
@@ -6061,10 +6061,12 @@ function buildDefaultSummarizer(opts) {
|
|
|
6061
6061
|
return async (messages) => {
|
|
6062
6062
|
registerBuiltins();
|
|
6063
6063
|
const modelPrefix = opts.agentModel.includes("/") ? opts.agentModel.slice(0, opts.agentModel.indexOf("/")) : void 0;
|
|
6064
|
+
const prefixProfile = modelPrefix !== void 0 ? getProviderProfile(modelPrefix) : void 0;
|
|
6065
|
+
const prefixUsable = prefixProfile !== void 0 && (prefixProfile.authType !== "api_key" || prefixProfile.envVars.some((v) => (process.env[v] ?? "").length > 0));
|
|
6064
6066
|
const route = resolveSummarizerRoute({
|
|
6065
6067
|
keyProvider: inferProviderFromApiKey(opts.apiKey),
|
|
6066
6068
|
modelPrefix,
|
|
6067
|
-
prefixHasProfile:
|
|
6069
|
+
prefixHasProfile: prefixUsable,
|
|
6068
6070
|
envProvider: detectPrimaryProvider()
|
|
6069
6071
|
});
|
|
6070
6072
|
const provider = route.provider;
|