Update index.js
Browse files534 unmodified lines535536537538539540541542543544545539540541546547548549534 unmodified lines res.write(`data: ${JSON.stringify(responseData)}\n\n`); } } console.log("详细调试信息:", { 'linejosn.response': linejosn.response, 'webSearchResults判断': linejosn.response === "webSearchResults", 'CONFIG.ISSHOW_SEARCH_RESULTS': CONFIG.ISSHOW_SEARCH_RESULTS, 'CONFIG.ISSHOW_SEARCH_RESULTS类型': typeof CONFIG.ISSHOW_SEARCH_RESULTS, '完整的linejosn对象': JSON.stringify(linejosn, null, 2) }); if (linejosn.response === "webSearchResults" && CONFIG.ISSHOW_SEARCH_RESULTS) { console.log("搜索结果判断:",linejosn.response === "webSearchResults" && CONFIG.ISSHOW_SEARCH_RESULTS); console.log("搜索结果是否开启:",CONFIG.ISSHOW_SEARCH_RESULTS); console.log("显示搜索结果"); 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+8-3