Skip to content

Conversation

AB-70
Copy link

@AB-70 AB-70 commented Aug 28, 2025

Background

After realizing that I could not add files to messages for code interpreter using claude, I decided this little change was needed to add support for the container uploads feature that anthropic sdk provides.

Summary

Added extra case for handling container_upload type of the message content part.

Manual Verification

Use any claude model that supports code interpreter, and add files to message history using message content type 'container_upload', providing anthropic file id.

One of my projects that I am working on required file analysis using code interpreter, and I verified by using it in my project. The code interpreter was able to access the uploaded files. Requires users to add beta headers for files api and code interpreter.

Tasks

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • Formatting issues have been fixed (run pnpm prettier-fix in the project root)
  • I have reviewed this pull request (self-review)

Future Work

Similar changes to other packages including openai are needed to support container uploads for their code interpreters.

Related Issues

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