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

Can send .jpeg but not .jpg files to Anthropic #1292

Open
9t8 opened this issue Jan 6, 2025 · 0 comments
Open

Can send .jpeg but not .jpg files to Anthropic #1292

9t8 opened this issue Jan 6, 2025 · 0 comments

Comments

@9t8
Copy link
Contributor

9t8 commented Jan 6, 2025

Baml sets media_type to image/jpg for .jpg files, which causes Antropic to fail: Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp'. Changing the extension to .jpeg fixes this, but I think Baml should patch this problem by sending image/jpeg when the filename ends in .jpg.

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

No branches or pull requests

1 participant