Skip to content

Commit 9bd3286

Browse files
committed
misc: small fix or general refactoring i did not bother commenting
1 parent 0092ab2 commit 9bd3286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nerve/tools/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def wrapper(*args: t.Any, **kwargs: t.Any) -> t.Any:
4646
if mime.startswith("image/"):
4747
result = {
4848
"type": "image_url",
49-
"image_url": {"url": f"data:{mime};base64,{base64.b64encode(result).decode("utf-8")}"},
49+
"image_url": {"url": f"data:{mime};base64,{base64.b64encode(result).decode('utf-8')}"},
5050
}
5151
else:
5252
logger.error(f"tool {func.__name__} references an unsupported mime type: {mime}")

0 commit comments

Comments
 (0)