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 0092ab2 commit 9bd3286Copy full SHA for 9bd3286
nerve/tools/compiler.py
@@ -46,7 +46,7 @@ def wrapper(*args: t.Any, **kwargs: t.Any) -> t.Any:
46
if mime.startswith("image/"):
47
result = {
48
"type": "image_url",
49
- "image_url": {"url": f"data:{mime};base64,{base64.b64encode(result).decode("utf-8")}"},
+ "image_url": {"url": f"data:{mime};base64,{base64.b64encode(result).decode('utf-8')}"},
50
}
51
else:
52
logger.error(f"tool {func.__name__} references an unsupported mime type: {mime}")
0 commit comments