[GH-ISSUE #2338] [FEAT]: API stream-chat support images #1527

Closed
opened 2026-02-22 18:25:16 -05:00 by yindo · 0 comments
Owner

Originally created by @wewaa on GitHub (Sep 20, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2338

Originally assigned to: @shatfield4 on GitHub.

How are you running AnythingLLM?

Docker (local)

What happened?

I want to analyze images using APIs, for example:

curl -X 'POST' \
  'https://***.com/api/v1/workspace/jerry2/stream-chat' \
  -H 'accept: text/event-stream' \
  -H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXX' \
  -H 'Content-Type: application/json' \
  -d '{
    "message": "Analyze the diagram below",
	"mode": "chat",
  "sessionId": "identifier-to-partition-chats-by-external-id",
    "attachments": [{
            "name": "2022091501.png",
            "mime": "image/png",
            "contentString": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFJCAYAAADQVfSlAAAgAElEQVR4nOy9WZMkSXImpuZX3HnV3V3d091zAhgMB7sLEJQFhFwRrlD"
        }
    ]
}

But the response was: Please provide a picture or a description of the picture?What should I do?

Are there known steps to reproduce?

No response

Originally created by @wewaa on GitHub (Sep 20, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2338 Originally assigned to: @shatfield4 on GitHub. ### How are you running AnythingLLM? Docker (local) ### What happened? I want to analyze images using APIs, for example: ```shell curl -X 'POST' \ 'https://***.com/api/v1/workspace/jerry2/stream-chat' \ -H 'accept: text/event-stream' \ -H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXX' \ -H 'Content-Type: application/json' \ -d '{ "message": "Analyze the diagram below", "mode": "chat", "sessionId": "identifier-to-partition-chats-by-external-id", "attachments": [{ "name": "2022091501.png", "mime": "image/png", "contentString": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFJCAYAAADQVfSlAAAgAElEQVR4nOy9WZMkSXImpuZX3HnV3V3d091zAhgMB7sLEJQFhFwRrlD" } ] } ``` But the response was: Please provide a picture or a description of the picture?What should I do? ### Are there known steps to reproduce? _No response_
yindo added the enhancementfeature request labels 2026-02-22 18:25:16 -05:00
yindo closed this issue 2026-02-22 18:25:16 -05:00
yindo changed title from [FEAT]: API stream-chat support images to [GH-ISSUE #2338] [FEAT]: API stream-chat support images 2026-06-05 14:41:13 -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#1527