Class OpenAiAudioApi.Builder
java.lang.Object
org.springframework.ai.openai.api.OpenAiAudioApi.Builder
- Enclosing class:
OpenAiAudioApi
Builder to construct
OpenAiAudioApi instance.- Since:
- 0.8.1
- Author:
- Christian Tzolov, Ilayaperumal Gopinathan, Jonghoon Park, Filip Hrisafov, Alexandros Pappas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiKey(org.springframework.ai.model.ApiKey apiKey) build()headers(org.springframework.http.HttpHeaders headers) responseErrorHandler(org.springframework.web.client.ResponseErrorHandler responseErrorHandler) restClientBuilder(org.springframework.web.client.RestClient.Builder restClientBuilder) speechPath(String speechPath) transcriptionPath(String transcriptionPath) webClientBuilder(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseUrl
-
apiKey
-
apiKey
-
speechPath
-
transcriptionPath
-
headers
-
restClientBuilder
public OpenAiAudioApi.Builder restClientBuilder(org.springframework.web.client.RestClient.Builder restClientBuilder) -
webClientBuilder
public OpenAiAudioApi.Builder webClientBuilder(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder) -
responseErrorHandler
public OpenAiAudioApi.Builder responseErrorHandler(org.springframework.web.client.ResponseErrorHandler responseErrorHandler) -
build
-