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 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 interface ModelRequest<org.springframework.core.io.Resource>
      Returns:
      the instructions or input required by the AI model
    • getOptions

      public ModelOptions getOptions()
      Description copied from interface: ModelRequest
      Retrieves the customizable options for AI model interactions.
      Specified by:
      getOptions in interface ModelRequest<org.springframework.core.io.Resource>
      Returns:
      the customizable options for AI model interactions