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