Skip to content

fix(anthropic): convert multimodal base64 inputs to attachments#212

Open
Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit intomainfrom
abhi-fix-208-anthropic-input-attachments
Open

fix(anthropic): convert multimodal base64 inputs to attachments#212
Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit intomainfrom
abhi-fix-208-anthropic-input-attachments

Conversation

@AbhiPrasad
Copy link
Copy Markdown
Member

Process Anthropic image and document input blocks before tracing so spans store Braintrust Attachments instead of raw base64 payloads. This keeps multimodal input logs consistent with other provider integrations and avoids bloating spans with binary data.

Add a focused regression test for input normalization plus VCR-backed image and PDF tests that exercise the real Anthropic API.

Closes #208

Process Anthropic image and document input blocks before tracing so spans store Braintrust Attachments instead of raw base64 payloads. This keeps multimodal input logs consistent with other provider integrations and avoids bloating spans with binary data.

Add a focused regression test for input normalization plus VCR-backed image and PDF tests that exercise the real Anthropic API.

Closes #208
@starfolkai
Copy link
Copy Markdown

starfolkai bot commented Apr 7, 2026

Drop into this review session: sfk devbox connect pr-212-braintrust-sdk-python-e69d --attach

No serious bugs or issues found 🎉

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.

[BOT ISSUE] Anthropic: multimodal inputs (base64 images, PDFs) not processed into Attachments

2 participants