Skip to content
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

Anthropic 3.7 sonnet error sending txt attachment #1412

Open
MNUser69 opened this issue Mar 2, 2025 · 2 comments
Open

Anthropic 3.7 sonnet error sending txt attachment #1412

MNUser69 opened this issue Mar 2, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@MNUser69
Copy link

MNUser69 commented Mar 2, 2025

Describe the bug

I attached two .txt documents to send to Claude as context for the prompt. It throws an error where it looks like bolt only allows image attachments. It should allow the same file types to be attached as what you can attach on the Claude web page, I would assume.

ERROR api.chat AI_APICallError: messages.2.content.1.image.source.base64.media_type: Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp'

Link to the Bolt URL that caused the error

http://localhost:xxxx

Steps to reproduce

  1. Go to the localhost:xxxx landing page for bolt
  2. Click on the paperclip icon and attach a couple of .txt files
  3. Type anything in the prompt input box and hit send

Expected behavior

I would assume that the attachments shouldn't be limited to only images and that a .txt file should be able to be sent to the Claude API

Screen Recording / Screenshot

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Provider Used

No response

Model Used

No response

Additional context

No response

@leex279 leex279 added the enhancement New feature or request label Mar 2, 2025
@leex279
Copy link
Collaborator

leex279 commented Mar 2, 2025

You are right, at the moment, as far as I see, thats a general implemenation for all chats, instead of per Model and we just support images.
I dont see a reason why we should not support other attachments as well, so added it as enhancement/feature.

@leex279 leex279 moved this to Backlog in bolt.diy dev Mar 2, 2025
@Toddyclipsgg
Copy link

@leex279 @MNUser69 I'll do the PR now. I already have a feature ready! Support only IMAGES, PDF, DOCX and TXT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

3 participants