Skip to content

OpenAiApi object is not registered as a bean via AutoConfiguration #3878

@sivaprasadreddy

Description

@sivaprasadreddy

Bug description
According to the Spring AI documentation (https://docs.spring.io/spring-ai/reference/api/chatclient.html#_multiple_openai_compatible_api_endpoints),
we can inject OpenAiApi and mutate to configure multiple OpenAI compatible ChatClients.
But it seems OpenAiApi object is not registered as a bean via AutoConfiguration.

Environment
Spring AI: 1.0.0, 1.1.0-SNAPSHOT.

Steps to reproduce
Try to inject OpenAiApi into any Spring bean.

Expected behavior
A bean of type OpenAiApi should be injected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions