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