Skip to content

Commit 1d77e39

Browse files
committed
fix: positional MIME argument fixed
1 parent a6f20fd commit 1d77e39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎dspy/adapters/types/file.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ def from_path(cls, file_path: str, filename: str | None = None, mime_type: str |
153153
@classmethod
154154
def from_bytes(
155155
cls, file_bytes: bytes, filename: str | None = None,
156-
resolution:str="medium",
157156
mime_type: str = "application/octet-stream",
157+
resolution:str = "medium"
158158
) -> "File":
159159
"""Create a File from raw bytes.
160160

0 commit comments

Comments
 (0)