From 459057e89b1fa2d9d2a7ba2bbcd01c3aad0d2a14 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 28 Aug 2025 16:41:48 +0800 Subject: [PATCH] fix: Encrypted model parameters exceed maximum length of 255 characters --- backend/apps/system/models/system_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/apps/system/models/system_model.py b/backend/apps/system/models/system_model.py index 530a4853..8d782af0 100644 --- a/backend/apps/system/models/system_model.py +++ b/backend/apps/system/models/system_model.py @@ -14,8 +14,8 @@ class AiModelBase: class AiModelDetail(SnowflakeBase, AiModelBase, table=True): __tablename__ = "ai_model" - api_key: str | None = Field(max_length=255, nullable=True) - api_domain: str = Field(max_length=255, nullable=False) + api_key: str | None = Field(nullable=True) + api_domain: str = Field(nullable=False) protocol: int = Field(nullable=False, default = 1) config: str = Field(sa_type = Text()) status: int = Field(nullable=False, default = 1)