diff --git a/searx/webapp.py b/searx/webapp.py
index 7acaa1a85..1afd49620 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -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 += ''
});
})
diff --git a/searx/webapp1.py b/searx/webapp1.py
index 7acaa1a85..1afd49620 100644
--- a/searx/webapp1.py
+++ b/searx/webapp1.py
@@ -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 += ''
});
})