pipecat-ai / pipecat

Open Source framework for voice and multimodal conversational AI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AnthropicLLMService exception

bigahega opened this issue · comments

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

Thank you! I'll take a look.