From 51433cba2f35b9a2571023236006ebc69d1d4d2d Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期二, 07 一月 2025 16:04:31 +0800
Subject: [PATCH] tnp

---
 app/service/v2/chat.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/service/v2/chat.py b/app/service/v2/chat.py
index f35604a..136a113 100644
--- a/app/service/v2/chat.py
+++ b/app/service/v2/chat.py
@@ -20,7 +20,7 @@
         for ans in chat.chat_completions(url, data, headers):
 
             yield "data:" + json.dumps({"code": 0, "message": "", "data": ans}, ensure_ascii=False) + "\n\n"
-        ConversationService.update_by_id(conv.id, conv.to_dict())
+        ChatSessionModel.update_by_id(conv.id, conv.to_dict())
     except Exception as e:
         yield "data:" + json.dumps({"code": 500, "message": str(e),
                                     "data": {"answer": "**ERROR**: " + str(e), "reference": []}},

--
Gitblit v1.8.0