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")
|
word=word.replaceAll("\n\n","\n").replaceAll("\n\n","\n")
|
||||||
document.querySelector("#prompt").innerHTML="";
|
document.querySelector("#prompt").innerHTML="";
|
||||||
markdownToHtml(beautify(word), document.querySelector("#prompt"))
|
markdownToHtml(beautify(word), document.querySelector("#prompt"))
|
||||||
prev_chat = prev_chat+'<div class="chat_question">'+document.querySelector("#prompt").innerHTML+"</div>";
|
|
||||||
chatTextRaw = "提问:" + word + "\n回答:";
|
chatTextRaw = "提问:" + word + "\n回答:";
|
||||||
chatTemp = ""
|
chatTemp = ""
|
||||||
text_offset = -1;
|
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
|
lock_chat=1
|
||||||
fetch("https://api.openai.com/v1/engines/text-davinci-003/completions", options)
|
fetch("https://api.openai.com/v1/engines/text-davinci-003/completions", options)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue