pipecat-ai / pipecat

Open Source framework for voice and multimodal conversational AI
BSD 2-Clause "Simplified" License
3.3k stars 309 forks source link

AnthropicLLMService exception #311

Open bigahega opened 3 months ago

bigahega commented 3 months ago

pipecat.services.anthropic:_process_context:126 - AnthropicLLMService#0 exception: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'messages: roles must alternate between "user" and "assistant", but found multiple "user" roles in a row'}}

model is: claude-3-5-sonnet-20240620

aconchillo commented 3 months ago

Thank you! I'll take a look.