Closed zfogg closed 1 week ago
i would like to first comment that my base64 data is valid. i validated it. but you can see in the takeScreenshot
function that i just run scrot
and cat it to base64
over ssh
fixed by changing cat file.png | base64
to cat file.png | base64 -w
I'm getting the same error when uploading via javascript. My base64 data is also valid but I get the same error. What does the -w symbol do?
hello, i am getting this error:
Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.2.content.0.tool_result.content.0.image.source.base64: invalid base64 data"}}
i am programming with the computer use api. when i try to run my screenshot tool and continue the conversation with a
tool_result
message, i get back this error from the api.here's the relevant code: