menu
chat_gpt_sdk package
documentation
chat_gpt_sdk.dart
UploadFile class
UploadFile class
dark_mode
light_mode
UploadFile
class
Constructors
UploadFile
({
required
FileInfo
file
,
String
purpose
=
'fine-tune'
})
Properties
file
→
FileInfo
Name of the JSON Lines file to be uploaded. If the is set to "fine-tune", each line is a JSON record with "prompt" and "completion" fields representing your training examples.purpose.
file
final
hashCode
→
int
The hash code for this object.
no setter
inherited
purpose
→
String
The intended purpose of the uploaded documents. Use "fine-tune" for Fine-tuning. This allows us to validate the format of the uploaded file.
purpose
final
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
Methods
getForm
(
)
→
Future
<
FormData
>
noSuchMethod
(
Invocation
invocation
)
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString
(
)
→
String
A string representation of this object.
inherited
Operators
operator ==
(
Object
other
)
→
bool
The equality operator.
inherited
chat_gpt_sdk package
documentation
chat_gpt_sdk
UploadFile class
chat_gpt_sdk library