mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-01 11:53:24 +08:00
使 MessageModel 中 conversation_id 为非必填项,避免前端请求错误
This commit is contained in:
parent
aae4144476
commit
1b9b777eaf
@ -9,7 +9,7 @@ class MessageModel(Base):
|
||||
"""
|
||||
__tablename__ = 'message'
|
||||
id = Column(String(32), primary_key=True, comment='聊天记录ID')
|
||||
conversation_id = Column(String(32), index=True, comment='对话框ID')
|
||||
conversation_id = Column(String(32), default=None, index=True, comment='对话框ID')
|
||||
# chat/agent_chat等
|
||||
chat_type = Column(String(50), comment='聊天类型')
|
||||
query = Column(String(4096), comment='用户问题')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user