Package org.springframework.ai.openai
Class OpenAiAudioTranscriptionOptions
java.lang.Object
org.springframework.ai.openai.AbstractOpenAiOptions
org.springframework.ai.openai.OpenAiAudioTranscriptionOptions
- All Implemented Interfaces:
AudioTranscriptionOptions,ModelOptions
public class OpenAiAudioTranscriptionOptions
extends AbstractOpenAiOptions
implements AudioTranscriptionOptions
OpenAI SDK Audio Transcription Options.
- Author:
- Michael Lavelle, Christian Tzolov, Piotr Olaszewski, Ilayaperumal Gopinathan
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.springframework.ai.openai.AbstractOpenAiOptions
AbstractOpenAiOptions.AbstractBuilder<O extends AbstractOpenAiOptions,B extends AbstractOpenAiOptions.AbstractBuilder<O, B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.openai.models.audio.AudioResponseFormatDefault response format.static final StringDefault transcription model (Whisper 1).Fields inherited from class org.springframework.ai.openai.AbstractOpenAiOptions
DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOpenAiAudioTranscriptionOptions(@Nullable String baseUrl, @Nullable String apiKey, @Nullable com.openai.credential.Credential credential, @Nullable String model, @Nullable String microsoftDeploymentName, @Nullable com.openai.azure.AzureOpenAIServiceVersion microsoftFoundryServiceVersion, @Nullable String organizationId, @Nullable Boolean isMicrosoftFoundry, @Nullable Boolean isGitHubModels, @Nullable Duration timeout, @Nullable Integer maxRetries, @Nullable Proxy proxy, @Nullable Map<String, String> customHeaders, @Nullable com.openai.models.audio.AudioResponseFormat responseFormat, @Nullable String prompt, @Nullable String language, @Nullable Float temperature, @Nullable List<com.openai.models.audio.transcriptions.TranscriptionCreateParams.TimestampGranularity> timestampGranularities) -
Method Summary
Methods inherited from class org.springframework.ai.openai.AbstractOpenAiOptions
getApiKey, getBaseUrl, getCredential, getCustomHeaders, getDeploymentName, getMaxRetries, getMicrosoftDeploymentName, getMicrosoftFoundryServiceVersion, getOrganizationId, getProxy, getTimeout, isGitHubModels, isMicrosoftFoundry
-
Field Details
-
DEFAULT_TRANSCRIPTION_MODEL
Default transcription model (Whisper 1). -
DEFAULT_RESPONSE_FORMAT
public static final com.openai.models.audio.AudioResponseFormat DEFAULT_RESPONSE_FORMATDefault response format.
-
-
Constructor Details
-
OpenAiAudioTranscriptionOptions
protected OpenAiAudioTranscriptionOptions(@Nullable String baseUrl, @Nullable String apiKey, @Nullable com.openai.credential.Credential credential, @Nullable String model, @Nullable String microsoftDeploymentName, @Nullable com.openai.azure.AzureOpenAIServiceVersion microsoftFoundryServiceVersion, @Nullable String organizationId, @Nullable Boolean isMicrosoftFoundry, @Nullable Boolean isGitHubModels, @Nullable Duration timeout, @Nullable Integer maxRetries, @Nullable Proxy proxy, @Nullable Map<String, String> customHeaders, @Nullable com.openai.models.audio.AudioResponseFormat responseFormat, @Nullable String prompt, @Nullable String language, @Nullable Float temperature, @Nullable List<com.openai.models.audio.transcriptions.TranscriptionCreateParams.TimestampGranularity> timestampGranularities)
-
-
Method Details
-
builder
-
getModel
- Specified by:
getModelin interfaceAudioTranscriptionOptions- Overrides:
getModelin classAbstractOpenAiOptions
-
getResponseFormat
public com.openai.models.audio.AudioResponseFormat getResponseFormat() -
getPrompt
-
getLanguage
-
getTemperature
-
getTimestampGranularities
public @Nullable List<com.openai.models.audio.transcriptions.TranscriptionCreateParams.TimestampGranularity> getTimestampGranularities() -
equals
-
hashCode
public int hashCode()
-