fixes: #1387

Thank you for taking time to contribute this pull request! You might have already read the [contributor guide][1], but as a reminder, please make sure to:

  • Sign the contributor license agreement
  • Rebase your changes on the latest main branch and squash your commits
  • Add/Update unit tests as needed
  • Run a build and make sure all tests pass prior to submission

Comment From: tzolov

Thanks @garethjevans , merged at b3e7efd3b9da8c89192511441f633a3f40257238

Comment From: tzolov

@garethjevans could you please comment to the https://github.com/spring-projects/spring-ai/issues/1387 explaining how this (just merged) contribution can help them? Perhaps we can update the docs with such explanation as well.