[GH-ISSUE #4670] [BUG]: anything LLM 1.8.1-r2 The attachments attribute in the API named v1/workspace/{slug}/chat does not work #2961

Closed
opened 2026-02-22 18:32:02 -05:00 by yindo · 1 comment
Owner

Originally created by @shidafei on GitHub (Nov 20, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4670

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

I use postman test the api,if Headers Content-Type is multipart/form-data; boundary=,llm return "Message is empty",if Headers Content-Type is application/json; charset=utf-8,llm return "it can't read file",Is this a bug?

Image Image Image

Are there known steps to reproduce?

No response

Originally created by @shidafei on GitHub (Nov 20, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4670 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? I use postman test the api,if Headers Content-Type is multipart/form-data; boundary=<calculated when request is sent>,llm return "Message is empty",if Headers Content-Type is application/json; charset=utf-8,llm return "it can't read file",Is this a bug? <img width="1315" height="627" alt="Image" src="https://github.com/user-attachments/assets/6bb0977c-d87c-44db-a6a5-571f61b16a67" /> <img width="1318" height="782" alt="Image" src="https://github.com/user-attachments/assets/bf9fc529-ae82-4b38-9d5e-9803e040a588" /> <img width="1764" height="1063" alt="Image" src="https://github.com/user-attachments/assets/9fdf2b81-a93e-4815-a0b3-9b552727c329" /> ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:32:02 -05:00
yindo closed this issue 2026-02-22 18:32:02 -05:00
Author
Owner

@timothycarambat commented on GitHub (Nov 20, 2025):

Attachments are only for images (example of how attachments are handled)

If you want to put in a document into the chat you need to embed it into the workspace - you cannot attach arbitrary files into the chat via the API, but this is a good suggestion for improvement

@timothycarambat commented on GitHub (Nov 20, 2025): Attachments are only for images [(example of how attachments are handled)](https://github.com/Mintplex-Labs/anything-llm/blob/c913a2d68c7cd676289e08d499e8762f903abc18/server/utils/AiProviders/ollama/index.js#L209-L215) If you want to put in a document into the chat you need to embed it into the workspace - you cannot attach arbitrary files into the chat via the API, but this is a good suggestion for improvement
yindo changed title from [BUG]: anything LLM 1.8.1-r2 The attachments attribute in the API named v1/workspace/{slug}/chat does not work to [GH-ISSUE #4670] [BUG]: anything LLM 1.8.1-r2 The attachments attribute in the API named v1/workspace/{slug}/chat does not work 2026-06-05 14:49:30 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2961