Class ChatCompletionContentPart.File
-
- All Implemented Interfaces:
public final class ChatCompletionContentPart.FileLearn about file inputs for text generation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionContentPart.File.BuilderA builder for File.
public final classChatCompletionContentPart.File.FileObject
-
Method Summary
Modifier and Type Method Description final ChatCompletionContentPart.File.FileObjectfile()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.BuildertoBuilder()final ChatCompletionContentPart.Filevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionContentPart.File.Builderbuilder()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()
-
-
-
-