fix: final assistant content cannot end with trailing whitespace error from Anthropic#5967
Merged
final assistant content cannot end with trailing whitespace error from Anthropic#5967