mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Update webapp.py
This commit is contained in:
parent
bd8c3a7d50
commit
fee879aa54
1 changed files with 3 additions and 2 deletions
|
@ -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+'<div class="chat_question">'+document.querySelector("#prompt").innerHTML+"</div>";
|
||||
chatTextRaw = "提问:" + word + "\n回答:";
|
||||
chatTemp = ""
|
||||
text_offset = -1;
|
||||
const prev_chat = document.getElementById('chat').innerHTML;
|
||||
prev_chat = document.getElementById('chat').innerHTML;
|
||||
prev_chat = prev_chat+'<div class="chat_question">'+document.querySelector("#prompt").innerHTML+"</div>";
|
||||
|
||||
lock_chat=1
|
||||
fetch("https://api.openai.com/v1/engines/text-davinci-003/completions", options)
|
||||
.then((response) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue