Find answers from the community

Updated 8 months ago

Weird quirk in anthropic messages API.

Weird quirk in anthropic messages API.

Plain Text
ValidationException: An error occurred (ValidationException) when calling the InvokeModel operation: messages: final assistant content cannot end with trailing whitespace


This applies to all the message blocks for last assistant prompt viz. prefilled (assuming we are passing array as content).
L
s
4 comments
bruh anthropic, y
Now I am back to drawing board for the react agent
You kmow I am pretty sure the old API allowed trailing white spaces.
yea thats a super strange change to make on their end
Add a reply
Sign up and join the conversation on Discord