Inside the OpenAiAutoConfiguration class, the OpenAiAudioTranscriptionModel and OpenAiAudioSpeechModel beans are not conditional on properties as the other models (*OpenAiChatModel, OpenAiEmbeddingModel, OpenAiImageModel*)

Comment From: markpollack

Thanks for reporting this.

Comment From: sobychacko

@RikJux The @ConditionalOnProperty annotation has already been applied to those beans. It looks like that may have been the case when you created this issue (on the snapshot version).

https://github.com/spring-projects/spring-ai/blob/main/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/openai/OpenAiAutoConfiguration.java#L169

https://github.com/spring-projects/spring-ai/blob/main/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/openai/OpenAiAutoConfiguration.java#L196

Closing the issue. Please feel free to re-open if you still see any problems. Thanks!