spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

OpenAI Auto Configuration failing to apply Webclient configuration instead of RestClient.

Open Adakole2020 opened this issue 1 year ago • 4 comments
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.

Screenshot 2024-07-17 at 2 19 50 PM

Environment Spring-AI: 1.0.0-M1 Java: 21

Steps to reproduce Initiate chatClient in a reactive setup with no non-reactive dependency inclusions. Screenshot 2024-07-17 at 2 19 01 PM

Adakole2020 avatar Jul 17 '24 21:07 Adakole2020