ai icon indicating copy to clipboard operation
ai copied to clipboard

Add support for base64 images in chat messages

Open celestial-rose opened this issue 1 month ago • 1 comments

Handle base64 image data for Llama 4 in chat messages. As per the documentation found here https://developers.cloudflare.com/workers-ai/models/llama-4-scout-17b-16e-instruct/

celestial-rose avatar Nov 08 '25 21:11 celestial-rose

⚠️ No Changeset found

Latest commit: 778539b131adb270d4daee63ee43f6593c6bb312

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Nov 08 '25 21:11 changeset-bot[bot]

what do you want to do with this PR?

threepointone avatar Dec 09 '25 13:12 threepointone

what do you want to do with this PR?

Wow I had in my todo to go back to these PRs later on today, so thank you for that

There's been some undocumented changes to the Workers AI API for Llama4 lately that occurred after this PR. The change provided a little more compliance towards the OpenAI Reponses API but it's still not totally the case I am running an app in prod with a patch of this PR but I'm wondering if there isn't a better generic way to do that than my proposition here.

celestial-rose avatar Dec 09 '25 13:12 celestial-rose