Skip to content

Conversation

devbulchandani
Copy link
Contributor

Fix for #4494(raised by @Kehrlann )

This PR refactors the Google GenAI auto-configuration modules to align with Spring Boot’s recommended practices and improve test consistency.

Changes

  • Removed unnecessary @ImportAutoConfiguration annotations from Google GenAI auto-configuration classes.
  • Introduced a new utility class BaseGoogleGenAiIT that centralizes the required auto-configurations for Google GenAI chat and embedding integration tests.
  • Updated tests to use BaseGoogleGenAiIT.googleGenAiChatAutoConfig(...) and BaseGoogleGenAiIT.googleGenAiEmbeddingAutoConfig(...) , ensuring that integration test contexts include the same auto-configs that would be present in a real Spring Boot application.

@ilayaperumalg ilayaperumalg added this to the 1.1.0.M3 milestone Oct 3, 2025
@ilayaperumalg
Copy link
Member

@devbulchandani Thanks for the PR!

@ilayaperumalg ilayaperumalg self-assigned this Oct 7, 2025
@ilayaperumalg
Copy link
Member

Rebased and merged as 86f013d along with some polishing/fixes to the tests via 26bab76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants