Skip to content

Conversation

@glesperance
Copy link
Contributor

Added support for non-image mimes in image_url content.

As offputting as this sounds this is how some models -- eg Gemini[1] & Anthropic[2] -- work for giving non-image files to the LM.

[1] https://docs.litellm.ai/docs/providers/gemini#usage---pdf--videos--etc-files
[2] https://docs.litellm.ai/docs/providers/anthropic#usage---pdf

@okhat
Copy link
Collaborator

okhat commented Feb 27, 2025

thanks a lot @glesperance !!

@isaacbmiller thoughts on merging?

@glesperance glesperance force-pushed the feat/file-image-support branch from 5edb0bf to 014c61a Compare March 3, 2025 16:00
@isaacbmiller isaacbmiller merged commit 7e786ef into stanfordnlp:main Mar 3, 2025
4 checks passed
@glesperance glesperance deleted the feat/file-image-support branch March 5, 2025 23:26
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.

3 participants