Skip to content

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

@9t8

Description

@9t8

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions