fix embed pdf frame bug (#4613)

This commit is contained in:
LawyZheng
2026-02-03 14:50:08 +08:00
committed by GitHub
parent 5fc16b6a5f
commit fcbb3daddd
3 changed files with 18 additions and 42 deletions

View File

@@ -263,6 +263,7 @@ class UploadFileAction(WebAction):
# This action is deprecated in 'extract-actions' prompt. Only used for the download action triggered by the code.
class DownloadFileAction(Action):
action_type: ActionType = ActionType.DOWNLOAD_FILE
download: bool = True
file_name: str
byte: Annotated[bytes | None, Field(exclude=True)] = None # bytes data
download_url: str | None = None # URL to download file from