Merge branch 'feat/add-remote-file-upload-api' into deploy/dev

This commit is contained in:
-LAN- 2024-11-01 12:49:14 +08:00
commit 96ae75b3f0

View File

@ -543,7 +543,7 @@ class Conversation(db.Model):
mode = db.Column(db.String(255), nullable=False)
name = db.Column(db.String(255), nullable=False)
summary = db.Column(db.Text)
_inputs: Mapped[str] = mapped_column("inputs")
_inputs: Mapped[dict] = mapped_column("inputs", db.JSON)
introduction = db.Column(db.Text)
system_instruction = db.Column(db.Text)
system_instruction_tokens = db.Column(db.Integer, nullable=False, server_default=db.text("0"))
@ -735,7 +735,7 @@ class Message(db.Model):
model_id = db.Column(db.String(255), nullable=True)
override_model_configs = db.Column(db.Text)
conversation_id = db.Column(StringUUID, db.ForeignKey("conversations.id"), nullable=False)
_inputs: Mapped[str] = mapped_column("inputs")
_inputs: Mapped[dict] = mapped_column("inputs", db.JSON)
query: Mapped[str] = db.Column(db.Text, nullable=False)
message = db.Column(db.JSON, nullable=False)
message_tokens = db.Column(db.Integer, nullable=False, server_default=db.text("0"))