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