Sonnet 3.5 requirest assistant messages to not have new lines

Created on 2 January 2025, 3 months ago

Problem/Motivation

If there are trailing whitespaces on an ingested assistant message you get "final assistant content cannot end with trailing whitespace" and error 400.

Only for Sonnet 3.5

Steps to reproduce

Add an assistant message with extra whitespace.

Proposed resolution

Use trim on chat messages specifically for Anthropic provider.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany marcus_johansson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024