From 531a35b80ea819c7dfb493e0f885b8ad33745fe4 Mon Sep 17 00:00:00 2001 From: Asuka Minato Date: Mon, 21 Jul 2025 18:57:25 +0900 Subject: [PATCH] fix one mroe --- api/models/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/models/model.py b/api/models/model.py index 09e3b9ab46..b8e8b78018 100644 --- a/api/models/model.py +++ b/api/models/model.py @@ -907,7 +907,7 @@ class Message(Base): message_tokens: Mapped[int] = mapped_column(db.Integer, nullable=False, server_default=db.text("0")) message_unit_price = mapped_column(db.Numeric(10, 4), nullable=False) message_price_unit = mapped_column(db.Numeric(10, 7), nullable=False, server_default=db.text("0.001")) - answer = db.Column(db.Text, nullable=False) + answer: Mapped[str] = db.Column(db.Text, nullable=False) # TODO make it mapped_column answer_tokens: Mapped[int] = mapped_column(db.Integer, nullable=False, server_default=db.text("0")) answer_unit_price = mapped_column(db.Numeric(10, 4), nullable=False) answer_price_unit = mapped_column(db.Numeric(10, 7), nullable=False, server_default=db.text("0.001"))