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, com.theokanning.openai.service.OpenAiService theoOpenAiService) openAiEmbeddingClient
(com.theokanning.openai.service.OpenAiService theoOpenAiService) com.theokanning.openai.service.OpenAiService
theoOpenAiService
(OpenAiProperties openAiProperties)
-
Constructor Details
-
OpenAiAutoConfiguration
-
-
Method Details
-
theoOpenAiService
@Bean public com.theokanning.openai.service.OpenAiService theoOpenAiService(OpenAiProperties openAiProperties) -
openAiClient
@Bean public OpenAiClient openAiClient(OpenAiProperties openAiProperties, com.theokanning.openai.service.OpenAiService theoOpenAiService) -
openAiEmbeddingClient
@Bean public EmbeddingClient openAiEmbeddingClient(com.theokanning.openai.service.OpenAiService theoOpenAiService)
-