Package org.springframework.ai.openai
Class OpenAiAudioTranscriptionOptions.Builder
java.lang.Object
org.springframework.ai.openai.OpenAiAudioTranscriptionOptions.Builder
- Enclosing class:
- OpenAiAudioTranscriptionOptions
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
granularityType
(OpenAiAudioApi.TranscriptionRequest.GranularityType granularityType) responseFormat
(OpenAiAudioApi.TranscriptResponseFormat responseFormat) temperature
(Float temperature) withGranularityType
(OpenAiAudioApi.TranscriptionRequest.GranularityType granularityType) Deprecated, for removal: This API element is subject to removal in a future version.withLanguage
(String language) Deprecated, for removal: This API element is subject to removal in a future version.uselanguage(String)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead.withPrompt
(String prompt) Deprecated, for removal: This API element is subject to removal in a future version.useprompt(String)
instead.withResponseFormat
(OpenAiAudioApi.TranscriptResponseFormat responseFormat) Deprecated, for removal: This API element is subject to removal in a future version.useresponseFormat(TranscriptResponseFormat)
instead.withTemperature
(Float temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Float)
instead.
-
Field Details
-
options
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
model
-
language
-
prompt
-
responseFormat
public OpenAiAudioTranscriptionOptions.Builder responseFormat(OpenAiAudioApi.TranscriptResponseFormat responseFormat) -
temperature
-
granularityType
public OpenAiAudioTranscriptionOptions.Builder granularityType(OpenAiAudioApi.TranscriptionRequest.GranularityType granularityType) -
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public OpenAiAudioTranscriptionOptions.Builder withModel(String model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead. -
withLanguage
@Deprecated(forRemoval=true, since="1.0.0-M5") public OpenAiAudioTranscriptionOptions.Builder withLanguage(String language) Deprecated, for removal: This API element is subject to removal in a future version.uselanguage(String)
instead. -
withPrompt
@Deprecated(forRemoval=true, since="1.0.0-M5") public OpenAiAudioTranscriptionOptions.Builder withPrompt(String prompt) Deprecated, for removal: This API element is subject to removal in a future version.useprompt(String)
instead. -
withResponseFormat
@Deprecated(forRemoval=true, since="1.0.0-M5") public OpenAiAudioTranscriptionOptions.Builder withResponseFormat(OpenAiAudioApi.TranscriptResponseFormat responseFormat) Deprecated, for removal: This API element is subject to removal in a future version.useresponseFormat(TranscriptResponseFormat)
instead. -
withTemperature
@Deprecated(forRemoval=true, since="1.0.0-M5") public OpenAiAudioTranscriptionOptions.Builder withTemperature(Float temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Float)
instead. -
withGranularityType
@Deprecated(forRemoval=true, since="1.0.0-M5") public OpenAiAudioTranscriptionOptions.Builder withGranularityType(OpenAiAudioApi.TranscriptionRequest.GranularityType granularityType) Deprecated, for removal: This API element is subject to removal in a future version.usegranularityType(GranularityType)
instead. -
build
-
granularityType(GranularityType)
instead.