Skip to content

Conversation

@dcomputing
Copy link
Contributor

@dcomputing dcomputing commented Sep 22, 2025

Anthropic Files API beta supports uploading to Claude storage for Claude referencing in chat messages. The API also provides for listing, deleting and getting metadata of files in Claude storage.

An attempt was made to conform to the rest of ellmer design where possible. As Claude handles uploaded files differently from Google, a new Content object was added to reflect Claude's approach and chat-anthropic enabled to process Claude centric content objects. I need to work on a project that uses ellmer and is leaning towards Claude and its storage and I hope that this will be useful to ellmer and enable the project to continue to use ellmer without having to maintain an internal fork.

Fixes #761

@hadley
Copy link
Member

hadley commented Sep 23, 2025

Thanks for working on this! I'm busy with some other projects right now so it might take me a minute to get you a review, but the basic idea looks solid.

@dcomputing
Copy link
Contributor Author

No hurry. Thanks for taking the time for this. Please let me know if there are any changes that I should make.

Copy link
Member

@hadley hadley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First round of comments incoming 😄 Overall, I think it looks solid, but there are lots of small style things that you could improve.

@hadley
Copy link
Member

hadley commented Nov 5, 2025

@dcomputing I'd like to get this into the upcoming release so I'll carry it over the finish line. Thanks for all your work so far!

@hadley hadley merged commit 9616aa4 into tidyverse:main Nov 6, 2025
11 checks passed
schloerke added a commit that referenced this pull request Nov 7, 2025
* main:
  Batch and parallel chats are no longer experimental (#842)
  Add basic support for Anthropic/Claude Files API (#760)
  More dollars methods (#841)
  Reworking OpenAI interface (#832)
  Better `batch_chat()` error handling for OpenAI (#838)
  Fix broken Anthropic url (#839)
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.

Anthropic Files API support

2 participants