Class OpenAiAudioSpeechAutoConfiguration
java.lang.Object
org.springframework.ai.model.openai.autoconfigure.OpenAiAudioSpeechAutoConfiguration
@AutoConfiguration(after={org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class,org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration.class,SpringAiRetryAutoConfiguration.class})
@ConditionalOnClass(OpenAiApi.class)
@ConditionalOnProperty(name="spring.ai.model.audio.speech",
havingValue="openai",
matchIfMissing=true)
@EnableConfigurationProperties({OpenAiConnectionProperties.class,OpenAiAudioSpeechProperties.class})
@ImportAutoConfiguration(classes={SpringAiRetryAutoConfiguration.class,org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class,org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration.class})
public class OpenAiAudioSpeechAutoConfiguration
extends Object
Auto-configuration
for OpenAI.- Author:
- Christian Tzolov, Stefan Vassilev, Thomas Vitale, Ilayaperumal Gopinathan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionopenAiAudioSpeechModel
(OpenAiConnectionProperties commonProperties, OpenAiAudioSpeechProperties speechProperties, org.springframework.retry.support.RetryTemplate retryTemplate, org.springframework.beans.factory.ObjectProvider<org.springframework.web.client.RestClient.Builder> restClientBuilderProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.function.client.WebClient.Builder> webClientBuilderProvider, org.springframework.web.client.ResponseErrorHandler responseErrorHandler)
-
Constructor Details
-
OpenAiAudioSpeechAutoConfiguration
public OpenAiAudioSpeechAutoConfiguration()
-
-
Method Details
-
openAiAudioSpeechModel
@Bean @ConditionalOnMissingBean public OpenAiAudioSpeechModel openAiAudioSpeechModel(OpenAiConnectionProperties commonProperties, OpenAiAudioSpeechProperties speechProperties, org.springframework.retry.support.RetryTemplate retryTemplate, org.springframework.beans.factory.ObjectProvider<org.springframework.web.client.RestClient.Builder> restClientBuilderProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.function.client.WebClient.Builder> webClientBuilderProvider, org.springframework.web.client.ResponseErrorHandler responseErrorHandler)
-