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
Anthropic now supports vision input with the release of claude-3 models. With this release, it has started accepting a different format for messages where content of a message can be an array and that array can have text and image inputs.
"messages": [
{
"role": "system",
"content": "Your are a helpful assistant"
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "Whats in the image"
},
{
"type": "image_url",
"image_url": {
"url": "base64data"
}
}
]
}
]
The system message transformer written for anthropic and bedrock-anthropic chat completions only accepts the content as a string and not as an array. This should be changed now to support array as well so that the structure is uniform for all types of messages. Here is an example of system message which should also be supported in gateway:
Anthropic now supports vision input with the release of claude-3 models. With this release, it has started accepting a different format for messages where content of a message can be an array and that array can have text and image inputs.
The system message transformer written for anthropic and bedrock-anthropic chat completions only accepts the content as a string and not as an array. This should be changed now to support array as well so that the structure is uniform for all types of messages. Here is an example of system message which should also be supported in gateway:
API DOCs reference for the new messages structure: https://docs.anthropic.com/claude/reference/messages_post
The text was updated successfully, but these errors were encountered: