Resolves https://github.com/spring-projects/spring-ai/issues/1258

Comment From: markpollack

merged in 3b014db1655a936e51c2549d76bfd9f120755111