Introduces retry functionality to VertexAI embedding and chat models, enhancing their resilience against transient failures.

It also corrects a typo in the VertexAiEmbeddingConnectionDetails class name.

Key changes:

  • Add RetryTemplate to VertexAiTextEmbeddingModel and VertexAiGeminiChatModel
  • Introduce spring-ai-retry dependency
  • Refactor code to support retry logic
  • Update auto-configuration classes to incorporate retry functionality
  • Fix typo in VertexAiEmbeddingConnectionDetails class name

Addresses #832

Comment From: sobychacko

Merged via https://github.com/spring-projects/spring-ai/commit/bb88e2f2de73ee3a362a703debbad8e70013aaa8.

Comment From: matosoma123

@sobychacko/ @markpollack , can someone delete the branch - vertex-retry - since the changes have been merged ? ( for cleanup purposes ? )