Update index.js
Browse files28 unmodified lines29303132333435500 unmodified lines53653753853954054128 unmodified linesMAX_ATTEMPTS: 3,//重试次数DELAY_BASE: 1000 // 基础延迟时间(毫秒)},ISSHOW_SEARCH_RESULTS: process.env.ISSHOW_SEARCH_RESULTS,//是否显示搜索结果,默认关闭CHROME_PATH: process.env.CHROME_PATH || "/usr/bin/chromium"//chrome路径};500 unmodified lines}}if (linejosn.response === "webSearchResults" && CONFIG.ISSHOW_SEARCH_RESULTS) {const searchResults = await Utils.organizeSearchResults(linejosn.webSearchResults);const responseData = MessageProcessor.createChatResponse(`<thinking>\r\n${searchResults}\r\n</thinking>\r\n`, model, true);res.write(`data: ${JSON.stringify(responseData)}\n\n`);28 unmodified lines29303132333435500 unmodified lines53653753853954054154228 unmodified linesMAX_ATTEMPTS: 3,//重试次数DELAY_BASE: 1000 // 基础延迟时间(毫秒)},ISSHOW_SEARCH_RESULTS: process.env.ISSHOW_SEARCH_RESULTS,//是否显示搜索结果,默认开启CHROME_PATH: process.env.CHROME_PATH || "/usr/bin/chromium"//chrome路径};500 unmodified lines}}if (linejosn.response === "webSearchResults" && CONFIG.ISSHOW_SEARCH_RESULTS) {console.log("显示搜索结果");const searchResults = await Utils.organizeSearchResults(linejosn.webSearchResults);const responseData = MessageProcessor.createChatResponse(`<thinking>\r\n${searchResults}\r\n</thinking>\r\n`, model, true);res.write(`data: ${JSON.stringify(responseData)}\n\n`);
index.js+2-1