Class ChatCompletionContentPart.File.FileObject
-
- All Implemented Interfaces:
public final class ChatCompletionContentPart.File.FileObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionContentPart.File.FileObject.Builder
A builder for FileObject.
-
Method Summary
Modifier and Type Method Description final Optional<String>
fileData()
The base64 encoded file data, used when passing the file to the model as a string. final Optional<String>
fileId()
The ID of an uploaded file to use as input. final Optional<String>
filename()
The name of the file, used when passing the file to the model as a string. final JsonField<String>
_fileData()
Returns the raw JSON value of fileData. final JsonField<String>
_fileId()
Returns the raw JSON value of fileId. final JsonField<String>
_filename()
Returns the raw JSON value of filename. final Map<String, JsonValue>
_additionalProperties()
final ChatCompletionContentPart.File.FileObject.Builder
toBuilder()
final ChatCompletionContentPart.File.FileObject
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionContentPart.File.FileObject.Builder
builder()
Returns a mutable builder for constructing an instance of FileObject. -
-
Method Detail
-
fileData
final Optional<String> fileData()
The base64 encoded file data, used when passing the file to the model as a string.
-
filename
final Optional<String> filename()
The name of the file, used when passing the file to the model as a string.
-
_fileData
final JsonField<String> _fileData()
Returns the raw JSON value of fileData.
Unlike fileData, this method doesn't throw if the JSON field has an unexpected type.
-
_fileId
final JsonField<String> _fileId()
Returns the raw JSON value of fileId.
Unlike fileId, this method doesn't throw if the JSON field has an unexpected type.
-
_filename
final JsonField<String> _filename()
Returns the raw JSON value of filename.
Unlike filename, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionContentPart.File.FileObject.Builder toBuilder()
-
validate
final ChatCompletionContentPart.File.FileObject validate()
-
builder
final static ChatCompletionContentPart.File.FileObject.Builder builder()
Returns a mutable builder for constructing an instance of FileObject.
-
-
-
-