fix: final assistant content cannot end with trailing whitespace error from Anthropic
#5967
+27
−0