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 self.application.id is not None:
|
||||||
# 插入数据库
|
# 插入数据库
|
||||||
if not QuerySet(Chat).filter(id=self.chat_id).exists():
|
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()
|
client_id=client_id).save()
|
||||||
# 插入会话记录
|
# 插入会话记录
|
||||||
chat_record.save()
|
chat_record.save()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user