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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionazureOpenAiChatClient
(com.azure.ai.openai.OpenAIClient openAIClient, AzureOpenAiChatProperties chatProperties) azureOpenAiEmbeddingClient
(com.azure.ai.openai.OpenAIClient openAIClient, AzureOpenAiEmbeddingProperties embeddingProperties) com.azure.ai.openai.OpenAIClient
openAIClient
(AzureOpenAiConnectionProperties connectionProperties)
-
Constructor Details
-
AzureOpenAiAutoConfiguration
public AzureOpenAiAutoConfiguration()
-
-
Method Details
-
openAIClient
@Bean @ConditionalOnMissingBean public com.azure.ai.openai.OpenAIClient openAIClient(AzureOpenAiConnectionProperties connectionProperties) -
azureOpenAiChatClient
@Bean public AzureOpenAiChatClient azureOpenAiChatClient(com.azure.ai.openai.OpenAIClient openAIClient, AzureOpenAiChatProperties chatProperties) -
azureOpenAiEmbeddingClient
@Bean public AzureOpenAiEmbeddingClient azureOpenAiEmbeddingClient(com.azure.ai.openai.OpenAIClient openAIClient, AzureOpenAiEmbeddingProperties embeddingProperties)
-