lobehub/lobe-chat

Getting "Error requesting Anthropic service. Please troubleshoot or retry based on the following information." #1496

almmaasoglu posted onGitHub

💻 Operating System

macOS

📦 Environment

Vercel / Zeabur / Sealos

🌐 Browser

Chrome

🐛 Bug Description

After using a few times I get this error.

"Error requesting Anthropic service. Please troubleshoot or retry based on the following information."

``` { "error": { "status": 400, "headers": { "connection": "keep-alive", "content-length": "184", "content-type": "application/json", "date": "Thu, 07 Mar 2024 23:03:38 GMT", "request-id": "req_01YU1D2EH9LyPeycjBgw752R", "via": "1.1 google", "x-cloud-trace-context": "4c7aa707b7da7afa04b55d9c1ba5c63d", "x-should-retry": "false" }, "error": { "type": "error", "error": { "type": "invalid_request_error", "message": "messages: roles must alternate between "user" and "assistant", but found multiple "assistant" roles in a row" } } }, "provider": "anthropic" }

🚦 Expected Behavior

No response

📷 Recurrence Steps

No response

📝 Additional Information

No response


👀 @almmaasoglu

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

posted by lobehubbot about 1 year ago

✅ @almmaasoglu

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

posted by lobehubbot 10 months ago

:tada: This issue has been resolved in version 0.156.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

posted by lobehubbot 10 months ago

Fund this Issue

$0.00
Funded

Pull requests