Class AudioTranscriptionPrompt
java.lang.Object
org.springframework.ai.openai.audio.transcription.AudioTranscriptionPrompt
- All Implemented Interfaces:
ModelRequest<org.springframework.core.io.Resource>
public class AudioTranscriptionPrompt
extends Object
implements ModelRequest<org.springframework.core.io.Resource>
- Since:
- 0.8.1
- Author:
- Michael Lavelle
-
Constructor Summary
ConstructorDescriptionAudioTranscriptionPrompt
(org.springframework.core.io.Resource audioResource) AudioTranscriptionPrompt
(org.springframework.core.io.Resource audioResource, ModelOptions modelOptions) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.io.Resource
Retrieves the instructions or input required by the AI model.Retrieves the customizable options for AI model interactions.
-
Constructor Details
-
AudioTranscriptionPrompt
public AudioTranscriptionPrompt(org.springframework.core.io.Resource audioResource) -
AudioTranscriptionPrompt
public AudioTranscriptionPrompt(org.springframework.core.io.Resource audioResource, ModelOptions modelOptions)
-
-
Method Details
-
getInstructions
public org.springframework.core.io.Resource getInstructions()Description copied from interface:ModelRequest
Retrieves the instructions or input required by the AI model.- Specified by:
getInstructions
in interfaceModelRequest<org.springframework.core.io.Resource>
- Returns:
- the instructions or input required by the AI model
-
getOptions
Description copied from interface:ModelRequest
Retrieves the customizable options for AI model interactions.- Specified by:
getOptions
in interfaceModelRequest<org.springframework.core.io.Resource>
- Returns:
- the customizable options for AI model interactions
-