fix: 支持原文件下载,同时将postgres地址由localhost变更为8.152.207.171

This commit is contained in:
sophie committed 2026-04-03 11:30:49 +08:00
1 parent 70f95e9f5c
commit c380248502
12 files changed
+1273 -273

No files matched your search

+3
View File
@@ -194,6 +194,9 @@ class ChatLog(Base):
latency: Mapped[int] = mapped_column(default=0)
conversation_id: Mapped[Optional[str]] = mapped_column(String(100))
tokens_used: Mapped[int] = mapped_column(default=0)
# Persist citation/source metadata so history messages can still show sources.
retriever_resources: Mapped[Optional[list]] = mapped_column(JSON)
attribution_parts: Mapped[Optional[list]] = mapped_column(JSON)
created_at: Mapped[datetime] = mapped_column(default=datetime.utcnow)
# 关联 Feedback