Class ChatCompletionContentPart.File
-
- All Implemented Interfaces:
public final class ChatCompletionContentPart.File
Learn about file inputs for text generation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionContentPart.File.Builder
A builder for File.
public final class
ChatCompletionContentPart.File.FileObject
-
Method Summary
Modifier and Type Method Description final ChatCompletionContentPart.File.FileObject
file()
final JsonValue
_type()
The type of the content part. final JsonField<ChatCompletionContentPart.File.FileObject>
_file()
Returns the raw JSON value of file. final Map<String, JsonValue>
_additionalProperties()
final ChatCompletionContentPart.File.Builder
toBuilder()
final ChatCompletionContentPart.File
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionContentPart.File.Builder
builder()
Returns a mutable builder for constructing an instance of File. -
-
Method Detail
-
file
final ChatCompletionContentPart.File.FileObject file()
-
_type
final JsonValue _type()
The type of the content part. Always
file
.Expected to always return the following:
JsonValue.from("file")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_file
final JsonField<ChatCompletionContentPart.File.FileObject> _file()
Returns the raw JSON value of file.
Unlike file, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionContentPart.File.Builder toBuilder()
-
validate
final ChatCompletionContentPart.File validate()
-
builder
final static ChatCompletionContentPart.File.Builder builder()
Returns a mutable builder for constructing an instance of File.
The following fields are required:
.file()
-
-
-
-