fix: File model add known extra fields, fix issue about the tool of… (#27607)

This commit is contained in:
CrabSAMA
2025-11-04 09:57:25 +08:00
committed by GitHub
parent 94cd2de940
commit 59c56b1b0d
2 changed files with 33 additions and 0 deletions

View File

@@ -74,6 +74,10 @@ class File(BaseModel):
storage_key: str | None = None,
dify_model_identity: str | None = FILE_MODEL_IDENTITY,
url: str | None = None,
# Legacy compatibility fields - explicitly handle known extra fields
tool_file_id: str | None = None,
upload_file_id: str | None = None,
datasource_file_id: str | None = None,
):
super().__init__(
id=id,