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
afd325e4ae
commit
740c62aee0
1 changed files with 1 additions and 1 deletions
|
@ -1131,7 +1131,7 @@ fetch("https://api.openai.com/v1/engines/text-davinci-003/completions", optionsI
|
||||||
fetch("https://api.openai.com/v1/engines/text-davinci-003/completions", optionsMore)
|
fetch("https://api.openai.com/v1/engines/text-davinci-003/completions", optionsMore)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
data.forEach(item => {
|
JSON.parse(data.choices[0].text.replaceAll("\n","")).forEach(item => {
|
||||||
document.querySelector("#chat_more").innerHTML += '<button class="btn_more" onclick="send_chat(this)">'+ String(item) +'</button>'
|
document.querySelector("#chat_more").innerHTML += '<button class="btn_more" onclick="send_chat(this)">'+ String(item) +'</button>'
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue