Closed jocax closed 2 months ago
This is a duplicate of https://github.com/spring-projects/spring-ai/issues/609 which was fixed recently. See commit https://github.com/spring-projects/spring-ai/commit/377b5ffa61427ce94f49793b00f4617edfcc59bc
This is a duplicate of #609 which was fixed recently. See commit 377b5ff
This problem seems to continue to persist even in the recent release. It doesn't expect the rest-client builder to be nullable and as such operates on the assumption that both configurations and builders are available.
Thanks for the feedback @Adakole2020 Will investigate.
Please do a quick search on GitHub issues first, the feature you are about to request might have already been requested.
Expected Behavior
It should be possible to use a custom WebClient.Builder in the Spring configuration. Currently only a RestClient.Builder is supported.
The class org.springframework.ai.autoconfigure.openai.OpenAiAutoConfiguration needs to be updated as well to accept the WebClient.Builder.
WebClient.Builder webClientBuilder, RetryTemplate retryTemplate, ResponseErrorHandler responseErrorHandler) {
Current Behavior
Currently it is not possible to inject a custom WebClient.Builder into the constructor.
Context
Can not use the pre configured WebClient.Builder.