mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: Encrypted model parameters exceed maximum length of 255 characters
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user