ClientsConfiguration

@ConditionalOnMissingBean(value = [ChatCompleterProvider::class])
@EnableConfigurationProperties(value = [AIConfig::class])
class ClientsConfiguration

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
@Bean
fun chatCompleterProvider(aiConfig: AIConfig, clientBuilders: List<ClientBuilder>, eventPublisher: EventPublisher?): ChatCompleterProvider
Link copied to clipboard
@Bean
@ConditionalOnClass(value = [OpenAIAsyncClient::class])
fun openAIAsyncClient(): ClientBuilder

The Azure OpenAI client setup to connect to the OpenAI API or Azure OpenAI. See https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/openai/azure-ai-openai#support-for-non-azure-openai

Link copied to clipboard
@Bean
@ConditionalOnClass(value = [OpenAIAsyncClient::class, DefaultAzureCredentialBuilder::class])
fun openAIAsyncClientWithAzureCredentials(): ClientBuilder

The Azure OpenAI client setup to connect to the Azure OpenAI using Azure Credentials.