spring-ai
spring-ai copied to clipboard
OpenAI Auto Configuration failing to apply Webclient configuration instead of RestClient.
trafficstars
Bug description
The OpenAI autoconfiguration relies on an import of the restclient autoconfiguration or a webclient autoconfiguration. Commit 377b5ff attempts to fix it but fails to handle the situation when either is null. An @nullable annotation on both followed by a later check might be ideal.
Environment Spring-AI: 1.0.0-M1 Java: 21
Steps to reproduce
Initiate chatClient in a reactive setup with no non-reactive dependency inclusions.