Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for images in UserMessages #546

Merged
merged 1 commit into from
May 10, 2024
Merged

Add support for images in UserMessages #546

merged 1 commit into from
May 10, 2024

Conversation

petersalas
Copy link
Contributor

This adds support for passing images as inputs to OpenAI models. They can be embedded in <UserMessage>s using the existing <Image> tag.

By default OpenAIChatModel passes images for models that supports it, but this can be forced (or denied) by setting the includeImages props explicitly.

@petersalas petersalas requested a review from mdepinet May 10, 2024 23:12
Copy link

vercel bot commented May 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai-jsx-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2024 11:17pm
ai-jsx-nextjs-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2024 11:17pm
ai-jsx-tutorial-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2024 11:17pm

Copy link
Contributor

@mdepinet mdepinet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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.

None yet

2 participants