mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复首次对话message大于1024报错 #1467
This commit is contained in:
parent
a7b85143a1
commit
5d726cf538
|
|
@ -124,7 +124,7 @@ class ChatInfo:
|
|||
if self.application.id is not None:
|
||||
# 插入数据库
|
||||
if not QuerySet(Chat).filter(id=self.chat_id).exists():
|
||||
Chat(id=self.chat_id, application_id=self.application.id, abstract=chat_record.problem_text,
|
||||
Chat(id=self.chat_id, application_id=self.application.id, abstract=chat_record.problem_text[0:1024],
|
||||
client_id=client_id).save()
|
||||
# 插入会话记录
|
||||
chat_record.save()
|
||||
|
|
|
|||
Loading…
Reference in New Issue