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