You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in a conversation with @ai assistant using Anthropic claude-3-haiku-20240307 when there is multiple messages in a row from user, the next request to @ai fails with message
{"timestamp":"2024-05-13 08:30:06.853 Z","level":"error","msg":"Streaming result to post failed","caller":"app/plugin_api.go:1003","plugin_id":"mattermost-ai","error":"non 200 response from anthropic: 400 Bad Request\nBody:\n{\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages: roles must alternate between \\\"user\\\" and \\\"assistant\\\", but found multiple \\\"user\\\" roles in a row\"}}"}
Steps to reproduce
Start a conversation with @ai bot using anthropic claude engine and add 2 messages in a row
sblaisot [10:44]
@ai say hello
ai BOT [10:44]
Hello there! How can I assist you today?
sblaisot [10:44]
very nice
sblaisot [10:44]
@ai who are you?
ai BOT [10:44]
Sorry! An error occurred while accessing the LLM. See server logs for details.
The text was updated successfully, but these errors were encountered:
error [2024-07-02 16:07:05.050 +09:00] Streaming result to post failed caller="app/plugin_api.go:1007" plugin_id=mattermost-ai error="non 200 response from anthropic: 400 Bad Request
Body:
{"type":"error","error":{"type":"invalid_request_error","message":"messages: roles must alternate between \"user\" and \"assistant\", but found multiple \"user\" roles in a row"}}"
error [2024-07-02 16:07:30.845 +09:00] Streaming result to post failed caller="app/plugin_api.go:1007" plugin_id=mattermost-ai error="non 200 response from anthropic: 400 Bad Request
Body:
{"type":"error","error":{"type":"invalid_request_error","message":"messages: roles must alternate between \"user\" and \"assistant\", but found multiple \"user\" roles in a row"}}"
We are connecting to the Anthropic API from Copilot.
Description
in a conversation with
@ai
assistant using Anthropic claude-3-haiku-20240307 when there is multiple messages in a row from user, the next request to@ai
fails with messageSteps to reproduce
Start a conversation with
@ai
bot using anthropic claude engine and add 2 messages in a rowThe text was updated successfully, but these errors were encountered: