Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
@@ -33,7 +33,7 @@ const CONFIG = {
|
|
33 |
CHROME_PATH: process.env.CHROME_PATH || "/usr/bin/chromium"//chrome路径
|
34 |
};
|
35 |
|
36 |
-
console.log("搜索结果是否开启:",CONFIG.ISSHOW_SEARCH_RESULTS);
|
37 |
// 请求头配置
|
38 |
const DEFAULT_HEADERS = {
|
39 |
'accept': '*/*',
|
@@ -536,6 +536,7 @@ async function handleStreamResponse(response, model, res) {
|
|
536 |
}
|
537 |
}
|
538 |
if (linejosn.response === "webSearchResults" && CONFIG.ISSHOW_SEARCH_RESULTS) {
|
|
|
539 |
console.log("显示搜索结果");
|
540 |
const searchResults = await Utils.organizeSearchResults(linejosn.webSearchResults);
|
541 |
const responseData = MessageProcessor.createChatResponse(`<thinking>\r\n${searchResults}\r\n</thinking>\r\n`, model, true);
|
|
|
33 |
CHROME_PATH: process.env.CHROME_PATH || "/usr/bin/chromium"//chrome路径
|
34 |
};
|
35 |
|
36 |
+
//console.log("搜索结果是否开启:",CONFIG.ISSHOW_SEARCH_RESULTS);
|
37 |
// 请求头配置
|
38 |
const DEFAULT_HEADERS = {
|
39 |
'accept': '*/*',
|
|
|
536 |
}
|
537 |
}
|
538 |
if (linejosn.response === "webSearchResults" && CONFIG.ISSHOW_SEARCH_RESULTS) {
|
539 |
+
console.log("搜索结果是否开启:",CONFIG.ISSHOW_SEARCH_RESULTS);
|
540 |
console.log("显示搜索结果");
|
541 |
const searchResults = await Utils.organizeSearchResults(linejosn.webSearchResults);
|
542 |
const responseData = MessageProcessor.createChatResponse(`<thinking>\r\n${searchResults}\r\n</thinking>\r\n`, model, true);
|