This commit is contained in:
Joseph Cheung 2023-03-02 15:30:59 +08:00
parent 0af6b994ed
commit f800a229dd
2 changed files with 2 additions and 2 deletions

View file

@ -2058,7 +2058,7 @@ function chatmore()
fetch("https://search.kg/completions", optionsMore)
.then(response => response.json())
.then(data => {
JSON.parse(data.choices[0].text.replaceAll("\n","")).forEach(item => {
JSON.parse(data.choices[0].message.content.replaceAll("\n","")).forEach(item => {
document.querySelector("#chat_more").innerHTML += '<button class="btn_more" onclick="send_webchat(this)">'+ String(item) +'</button>'
});
})

View file

@ -2058,7 +2058,7 @@ function chatmore()
fetch("https://search.kg/completions", optionsMore)
.then(response => response.json())
.then(data => {
JSON.parse(data.choices[0].text.replaceAll("\n","")).forEach(item => {
JSON.parse(data.choices[0].message.content.replaceAll("\n","")).forEach(item => {
document.querySelector("#chat_more").innerHTML += '<button class="btn_more" onclick="send_webchat(this)">'+ String(item) +'</button>'
});
})