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
+1
View File
@@ -42,6 +42,7 @@ async function setup(t, visionDebug = true) {
slowRequestLoggingEnabled: false, structuredRequestLoggingEnabled: false
}, modelOverrides: {fetch: async (_url, options) => {
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);
const chunks = body.model === "qwen2.5vl:7b"
? [{message: {content: rawVisionResponse}, done: true}]