From 9eff7b0b43017498fcf79453b89b7f121b989798 Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Thu, 23 Feb 2023 23:51:56 +0800 Subject: [PATCH] Update webapp.py --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index a288fa78d..040debb1a 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -1198,7 +1198,7 @@ fetch("https://api.openai.com/v1/engines/text-davinci-003/completions", optionsI method: "POST", headers: headers, body: JSON.stringify({ - "prompt": document.querySelector("#chat").innerHTML.replace(/.*?<\/a.*?>/g, '').replace(/]+>/g,"").replace(/\n\n/g,"\n") +"\n" + '以上是“''' + original_search_query + r'''”的网络知识。给出需要更多网络知识才能回答的问题,json数组格式["q1","q2","q3","q4"]:', + "prompt": document.querySelector("#chat").innerHTML.replace(/.*?<\/a.*?>/g, '').replace(/]+>/g,"").replace(/\n\n/g,"\n") +"\n" + '以上是“''' + original_search_query + r'''”的网络知识。给出需要更多网络知识才能回答的,不含代词的完整问题,json数组格式["q1","q2","q3","q4"]:', "max_tokens": 1500, "temperature": 0.7, "top_p": 1,