@tangle-network/agent-app 3.0.23 → 3.0.24
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.
|
@@ -3597,7 +3597,7 @@ function createDefaultChatBackend(projectId, env, config, bindings, modelPolicy)
|
|
|
3597
3597
|
const warmer = bindings && createSandboxPrewarmer(shell, { claim: createD1PrewarmClaimStore(bindings.db), mode: "create-or-resume", claimTtlSeconds: 45 });
|
|
3598
3598
|
return {
|
|
3599
3599
|
prewarm: (scope) => warmer ? warmer.prewarm({ ...scope, harness }).then((warm) => warm.completion) : Promise.resolve(),
|
|
3600
|
-
when: (args) => config.router !== false && (Boolean(config.funding) || Boolean(env.TANGLE_API_KEY?.trim())) && !turnCarriesFiles(args.prompt) && !args.executionLimits?.maxReasoningTokens,
|
|
3600
|
+
when: (args) => config.router !== false && (Boolean(config.funding) || Boolean(env.TANGLE_API_KEY?.trim())) && !turnCarriesFiles(args.prompt) && !args.executionLimits?.maxReasoningTokens && !config.providers?.[args.body.model ?? env.MODEL_NAME ?? config.model ?? ""],
|
|
3601
3601
|
async router(args) {
|
|
3602
3602
|
const model = modelFor(args);
|
|
3603
3603
|
if (modelPolicy) await assertPolicy({ kind: "model", id: model, ...modelPolicy });
|
|
@@ -4154,4 +4154,4 @@ export {
|
|
|
4154
4154
|
createChatTurnRoutes,
|
|
4155
4155
|
streamChatRouteAsSandboxEvents
|
|
4156
4156
|
};
|
|
4157
|
-
//# sourceMappingURL=chunk-
|
|
4157
|
+
//# sourceMappingURL=chunk-FYWWQRLA.js.map
|