Class AzureOpenAiAutoConfiguration

java.lang.Object
org.springframework.ai.autoconfigure.azure.openai.AzureOpenAiAutoConfiguration

@AutoConfiguration @ConditionalOnClass(com.azure.ai.openai.OpenAIClientBuilder.class) @EnableConfigurationProperties({AzureOpenAiChatProperties.class,AzureOpenAiEmbeddingProperties.class,AzureOpenAiConnectionProperties.class}) public class AzureOpenAiAutoConfiguration extends Object
  • Constructor Details

    • AzureOpenAiAutoConfiguration

      public AzureOpenAiAutoConfiguration()
  • Method Details

    • openAIClient

      @Bean @ConditionalOnMissingBean public com.azure.ai.openai.OpenAIClient openAIClient(AzureOpenAiConnectionProperties connectionProperties)
    • azureOpenAiChatClient

      @Bean @ConditionalOnProperty(prefix="spring.ai.azure.openai.chat", name="enabled", havingValue="true", matchIfMissing=true) public AzureOpenAiChatClient azureOpenAiChatClient(com.azure.ai.openai.OpenAIClient openAIClient, AzureOpenAiChatProperties chatProperties, List<FunctionCallback> toolFunctionCallbacks, FunctionCallbackContext functionCallbackContext)
    • azureOpenAiEmbeddingClient

      @Bean @ConditionalOnProperty(prefix="spring.ai.azure.openai.embedding", name="enabled", havingValue="true", matchIfMissing=true) public AzureOpenAiEmbeddingClient azureOpenAiEmbeddingClient(com.azure.ai.openai.OpenAIClient openAIClient, AzureOpenAiEmbeddingProperties embeddingProperties)
    • springAiFunctionManager

      @Bean @ConditionalOnMissingBean public FunctionCallbackContext springAiFunctionManager(org.springframework.context.ApplicationContext context)