From 3400467e0a8359cbfe7110e6b1599c2139cab65d Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Thu, 2 Mar 2023 15:02:30 +0800 Subject: [PATCH] c --- searx/webapp.py | 2 +- searx/webapp1.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/webapp.py b/searx/webapp.py index e0893341d..7cc665de9 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -2134,7 +2134,7 @@ fetch("https://search.kg/completions", optionsIntro) body: b64EncodeUnicode(JSON.stringify({ "messages": [{'role':'assistant','content':document.querySelector("#chat").innerHTML.replace(/.*?<\/a.*?>/g, '').replace(/]+>/g,"").replace(/\n\n/g,"\n") +"\n"} , {'role':'user','content':"围绕关键词“" + original_search_query + "”,结合你的知识总结归纳发表评论,可以用emoji,不得重复提及已有内容:\n"}], "max_tokens": 1500, - "temperature": 0.7, + "temperature": 0.5, "top_p": 1, "frequency_penalty": 0, "presence_penalty": 2, diff --git a/searx/webapp1.py b/searx/webapp1.py index e0893341d..7cc665de9 100644 --- a/searx/webapp1.py +++ b/searx/webapp1.py @@ -2134,7 +2134,7 @@ fetch("https://search.kg/completions", optionsIntro) body: b64EncodeUnicode(JSON.stringify({ "messages": [{'role':'assistant','content':document.querySelector("#chat").innerHTML.replace(/.*?<\/a.*?>/g, '').replace(/]+>/g,"").replace(/\n\n/g,"\n") +"\n"} , {'role':'user','content':"围绕关键词“" + original_search_query + "”,结合你的知识总结归纳发表评论,可以用emoji,不得重复提及已有内容:\n"}], "max_tokens": 1500, - "temperature": 0.7, + "temperature": 0.5, "top_p": 1, "frequency_penalty": 0, "presence_penalty": 2,