diff --git a/static/ai-chat2.html b/static/ai-chat2.html
index 28b0adf..d120413 100644
--- a/static/ai-chat2.html
+++ b/static/ai-chat2.html
@@ -68,8 +68,8 @@
parseResponse: function (res, requestType) {
// alert(requestType);
console.log(res);
- if (requestType === 'send' && res?.choices?.length > 0) {
- let res1 = res?.choices[0]?.message?.content;
+ if (requestType === 'send' && res?.code === 0) {
+ let res1 = res.data;
res1 = DOMPurify.sanitize(res1)