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

fix: ensure Image objects can be used directly #386

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

akx
Copy link
Contributor

@akx akx commented Dec 17, 2024

Without the fix in the 2nd commit, _copy_messages() would raise a Pydantic error as Images are being wrapped as Image(value=Image(...)).

Related to #384 which exposes the model for general use.

This PR also removes Pillow from testing dependencies; it's not worth it to pull in a dependency just to generate a static 1x1 PNG we already know.

@ParthSareen
Copy link
Contributor

Could also be related to #375 - will check this out

@ParthSareen
Copy link
Contributor

Hi @akx - should fix some interface mismatch stuff here too so going to work off your PR :) Thanks for your contribution 🫡

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