Class OpenAiAutoConfiguration
java.lang.Object
org.springframework.ai.autoconfigure.openai.OpenAiAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(com.theokanning.openai.service.OpenAiService.class)
@EnableConfigurationProperties(OpenAiProperties.class)
@ImportRuntimeHints(NativeHints.class)
public class OpenAiAutoConfiguration
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionopenAiClient
(OpenAiProperties openAiProperties) openAiEmbeddingClient
(OpenAiProperties openAiProperties)
-
Constructor Details
-
OpenAiAutoConfiguration
public OpenAiAutoConfiguration()
-
-
Method Details
-
openAiClient
-
openAiEmbeddingClient
@Bean @ConditionalOnMissingBean public EmbeddingClient openAiEmbeddingClient(OpenAiProperties openAiProperties)
-