Skip to content

Conversation

@celestial-rose
Copy link

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/

@changeset-bot
Copy link

changeset-bot bot commented Nov 8, 2025

⚠️ No Changeset found

Latest commit: 778539b

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

Handle base64 image data for Llama 4 in chat messages.
@threepointone
Copy link
Collaborator

what do you want to do with this PR?

@celestial-rose
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants