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

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

Open
wewaa opened this issue Sep 21, 2024 · 0 comments
Open

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

wewaa opened this issue Sep 21, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request feature request

Comments

@wewaa
Copy link

wewaa commented Sep 21, 2024

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

@wewaa wewaa added the possible bug Bug was reported but is not confirmed or is unable to be replicated. label Sep 21, 2024
@timothycarambat timothycarambat changed the title [BUG]: Does API stream-chat support images? [FEAT]: API stream-chat support images Sep 21, 2024
@timothycarambat timothycarambat removed the possible bug Bug was reported but is not confirmed or is unable to be replicated. label Sep 21, 2024
@timothycarambat timothycarambat self-assigned this Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request
Projects
None yet
Development

No branches or pull requests

2 participants