Fix #930
Comment From: tzolov
rebased, squashed and merged at f5b72242c03fd52688dcc3d741a188019e07170b
Comment From: tzolov
Thank you for the contribution @didalgolab,
I've merged your PR and then tried to improve the Anthropic stream handing with https://github.com/spring-projects/spring-ai/pull/995
Feel free to review it.