Skip to content

Conversation

Kehrlann
Copy link
Contributor

@Kehrlann Kehrlann commented Sep 28, 2025

Related to #4494


This PR removes the @ImportAutoConfiguration from Ollama's auto-configuration classes.
It also reworks the "autoconfigure after" declarations, so that they are closest to the actual auto-config that uses them. For example, the RestClientAutoConfiguration is used by the OllamaApiAutoconfiguration through the RestClient.Builder injection ; so the dependency is expressed in OllamaApiAutoConfiguration.

We also introduce a testing pattern where all the auto-configs that would be present in a Boot app are injected by default in the test contexts of integration tests.

@Kehrlann Kehrlann force-pushed the dgarnier/fix-ollama-imports branch from 4da6aea to 570dea6 Compare September 28, 2025 12:26
- Related to spring-projects#4494

Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
@ilayaperumalg
Copy link
Member

@Kehrlann Thanks for the PR. LGTM, rebased and merged as b915413

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants