raph1
2
Hi Jeff, how are you doing ?
I was struggling with the same problem yesterday and stumbled on your post.
I think I found a way to overcome it.
- You should be using this format in the API call :
[
{
"role": "user",
"content": [
{
"type": "text",
"text": "What is in this image?",
},
{
"type": "image_url",
"image_url": {"url": f"data:image/jpeg;base64,{base64_image}"},
},
]
Bubble doesnt do the base64 encoding by defaut, so it has to be specified somewhere
- Backend workflow : I recommend you do this action in the frontend to test what’s wrong in the process
Hope it helps : )
Raphael