Record Class OpenAiApi.ChatCompletionMessage.MediaContent.InputAudio
java.lang.Object
java.lang.Record
org.springframework.ai.openai.api.OpenAiApi.ChatCompletionMessage.MediaContent.InputAudio
- Record Components:
data- Base64 encoded audio data.format- The format of the encoded audio data. Currently supports "wav" and "mp3".
- Enclosing class:
OpenAiApi.ChatCompletionMessage.MediaContent
public static record OpenAiApi.ChatCompletionMessage.MediaContent.InputAudio(String data, OpenAiApi.ChatCompletionMessage.MediaContent.InputAudio.Format format)
extends Record
- Author:
- Christian Tzolov, Michael Lavelle, Mariusz Bernacki, Thomas Vitale, David Frizelle, Alexandros Pappas, Filip Hrisafov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aInputAudiorecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InputAudio
public InputAudio(String data, OpenAiApi.ChatCompletionMessage.MediaContent.InputAudio.Format format) Creates an instance of aInputAudiorecord class.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
data
-
format
-