Skip to content

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

Closed
@Adakole2020

Description

@Adakole2020

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions