We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81377cb commit a1801b8Copy full SHA for a1801b8
openhands-tools/openhands/tools/file_editor/editor.py
@@ -343,8 +343,8 @@ def view(
343
image_base64 = base64.b64encode(image_bytes).decode("utf-8")
344
345
mime_type, _ = mimetypes.guess_type(str(path))
346
- if not mime_type or not mime_type.startswith('image/'):
347
- mime_type = 'image/png'
+ if not mime_type or not mime_type.startswith("image/"):
+ mime_type = "image/png"
348
output_msg = (
349
f"Image file {path} read successfully. Displaying image content."
350
)
0 commit comments