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 Details

    • OpenAiAutoConfiguration

      public OpenAiAutoConfiguration(OpenAiProperties openAiProperties)
  • 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)