From fee879aa542ea2ace9fb122c54e9bacc6803b57a Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Thu, 23 Feb 2023 21:55:54 +0800 Subject: [PATCH] Update webapp.py --- searx/webapp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/searx/webapp.py b/searx/webapp.py index 553de83f6..1f2f5e0bb 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -945,11 +945,12 @@ function send_chat(elem) word=word.replaceAll("\n\n","\n").replaceAll("\n\n","\n") document.querySelector("#prompt").innerHTML=""; markdownToHtml(beautify(word), document.querySelector("#prompt")) -prev_chat = prev_chat+'
'+document.querySelector("#prompt").innerHTML+"
"; chatTextRaw = "提问:" + word + "\n回答:"; chatTemp = "" text_offset = -1; -const prev_chat = document.getElementById('chat').innerHTML; +prev_chat = document.getElementById('chat').innerHTML; +prev_chat = prev_chat+'
'+document.querySelector("#prompt").innerHTML+"
"; + lock_chat=1 fetch("https://api.openai.com/v1/engines/text-davinci-003/completions", options) .then((response) => {