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

ContentPart image media option updates #113

Merged
merged 1 commit into from
May 3, 2024

Conversation

brainlid
Copy link
Owner

@brainlid brainlid commented May 3, 2024

  • 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.
  • Unrelated: updated to use newer req

Improves cross model support for images

- updated to use newer req
- ContentPart image :media option now supports abstractions for :png, :jpg, and :jpeg

Improves cross model support for images
@brainlid brainlid merged commit 6ed03e8 into main May 3, 2024
1 check passed
@brainlid brainlid deleted the me-content-part-media-type-abstraction branch May 3, 2024 04:07
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.

1 participant