Enable automatic web search by default; improve toggle behavior and search planning.
CI / check (22) (push) Successful in 9m35s
CI / check (24) (push) Successful in 9m34s

This commit is contained in:
2026-10-06 08:50:03 +02:00
parent 674abf78f6
commit 7be654af11
17 changed files with 300 additions and 54 deletions
+3 -1
View File
@@ -36,7 +36,9 @@ async function setup(t, {visionResult = null, replyResult = null, visionModel =
searxngUrl: `http://127.0.0.1:${searchServer.address().port}`,
eventLoopLagMonitorEnabled: false, slowRequestLoggingEnabled: false, structuredRequestLoggingEnabled: false},
modelOverrides: {fetch: async (_url, options) => {
const body = JSON.parse(options.body); requests.push(body);
const body = JSON.parse(options.body);
if (body.format?.properties?.search) return new Response(JSON.stringify({message: {content: '{"search":false,"query":""}'}, done: true}));
requests.push(body);
order.push(body.model === visionModel ? "vision" : "answer");
if (holdVision && body.model === visionModel) return new Promise((_resolve, reject) => {
startedVision();