Update index.js
Browse files28 unmodified lines2930313232333435500 unmodified lines53653753853954054154228 unmodified lines MAX_ATTEMPTS: 3,//重试次数 DELAY_BASE: 1000 // 基础延迟时间(毫秒) }, ISSHOW_SEARCH_RESULTS: process.env.ISSHOW_SEARCH_RESULTS,//是否显示搜索结果,默认关闭 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