Skip to content

Commit

Permalink
fix: 修复新增sftmodel的报错 (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
zgqgit committed Feb 26, 2024
2 parents b91eebb + 761b114 commit 34448d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/bisheng/database/models/sft_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# 可用于训练的model列表
class SftModelBase(SQLModelSerializable):
id: str = Field(default=None, nullable=False, primary_key=True, description='唯一ID')
id: int = Field(default=None, nullable=False, primary_key=True, description='唯一ID')
create_time: Optional[datetime] = Field(sa_column=Column(
DateTime, nullable=False, index=True, server_default=text('CURRENT_TIMESTAMP')))
update_time: Optional[datetime] = Field(sa_column=Column(
Expand Down

0 comments on commit 34448d9

Please sign in to comment.