ContentPart image :media option now supports abstractions for :png, :jpg, and :jpeg. OpenAI and Anthropic have different requirements for specifying the mime type (media type) of an image. One requires "image/jpeg" and the other requires "image/jpg". With the abstraction in place, we can use the same messages with multiple models.
:media
option now supports abstractions for:png
,:jpg
, and:jpeg
. OpenAI and Anthropic have different requirements for specifying the mime type (media type) of an image. One requires"image/jpeg"
and the other requires"image/jpg"
. With the abstraction in place, we can use the same messages with multiple models.req
Improves cross model support for images