Skip to content

How to send multiple images to OpenAI using the Vercel AI SDK #2306

Answered by lgrammel
diasmashikov asked this question in Help
Discussion options

You must be logged in to vote

We have added a "attachments" feature to use chat that you can use in combination with convertToCoreMessages. You can find an example here: https://sdk.vercel.ai/docs/ai-sdk-ui/chatbot#attachments-experimental

Btw you are mixing the OpenAI SDK and the Vercel AI SDK with an OpenAI provider, which is confusing and can lead to issues.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@nroy20
Comment options

@lgrammel
Comment options

@MarufRayhan
Comment options

@lgrammel
Comment options

@rockywangxiaolei
Comment options

Answer selected by lgrammel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants