Skip to content

Add PDF support for Anthropic completions API #79

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

Conversation

jrodrigosm
Copy link
Contributor

This change makes it possible to send PDFs to Anthropic models using the chat completions API, which was not allowed until now (the Anthropic implementation only allowed sending images, despite the Anthropic API having no trouble accepting PDFs, see https://docs.anthropic.com/en/docs/build-with-claude/pdf-support .

@0x1eef 0x1eef merged commit c60ee86 into llmrb:main Aug 5, 2025
3 checks passed
@0x1eef
Copy link
Member

0x1eef commented Aug 5, 2025

Thanks ❤️
And sorry about the slow reply.

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.

2 participants