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
When sending a simple and correct series of messages for Anthropic, I receive this error:
Error code: 400 - {'error': {'message': "AnthropicException - AnthropicException - Invalid role passed in - {'role': 'user', 'content': '\\nWhat is the query for `console.info` => `consdole.heaven`\\n'}", 'type': None, 'param': None, 'code': 400}}
Messages:
[
{
"role": "user",
"content": "\nWhat is the query for `console.log` => `console.error`\n"
},
{
"role": "assistant",
"content": "\nThis is the GritQL query for the given before/after examples:\n<gritql>\n`console.log` => `console.error`\n</gritql>\n"
},
{
"role": "user",
"content": "\nWhat is the query for `console.info` => `consdole.heaven`\n"
}
]
Relevant log output
No response
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered:
@morgante can you expand on that? If you pass consecutive user or assistant messages, claude will throw an error. To avoid this (since this would work on openai), we merge consecutive messages.
What happened?
When sending a simple and correct series of messages for Anthropic, I receive this error:
Messages:
Relevant log output
No response
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: