s
This commit is contained in:
parent
0af6b994ed
commit
f800a229dd
@ -2058,7 +2058,7 @@ function chatmore()
|
|||||||
fetch("https://search.kg/completions", optionsMore)
|
fetch("https://search.kg/completions", optionsMore)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.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>'
|
document.querySelector("#chat_more").innerHTML += '<button class="btn_more" onclick="send_webchat(this)">'+ String(item) +'</button>'
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
@ -2058,7 +2058,7 @@ function chatmore()
|
|||||||
fetch("https://search.kg/completions", optionsMore)
|
fetch("https://search.kg/completions", optionsMore)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.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>'
|
document.querySelector("#chat_more").innerHTML += '<button class="btn_more" onclick="send_webchat(this)">'+ String(item) +'</button>'
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user