Closed corneliusroemer closed 2 months ago
When the chat message ended with white space, claudette crashed. Right stripping prevents this.
Example error:
anthropic.BadRequestError: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'messages: final assistant content cannot end with trailing whitespace'}}
Ah yes good point.
When the chat message ended with white space, claudette crashed. Right stripping prevents this.
Example error: