Enable automatic web search by default; improve toggle behavior and search planning.
This commit is contained in:
@@ -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}]
|
||||
|
||||
Reference in New Issue
Block a user