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:

Fixed it issue https://github.com/spring-projects/spring-ai/issues/1248

  • 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

Hi @Claudio-code , thank you for catching and fixing the case when we have empty generation list.

Comment From: tzolov

Rebased, squashed and merged at b468354dd321de36cff3d4b063309668e136c6ce