pub struct FileUpload {
pub file: String,
pub purpose: String,
}
Fields§
§file: String
Name of the JSON Lines file to be uploaded.
If the purpose is set to “fine-tune”, each line is a JSON record with “prompt” and “completion” fields representing your training examples.
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.
Trait Implementations§
Source§impl Debug for FileUpload
impl Debug for FileUpload
Source§impl<'de> Deserialize<'de> for FileUpload
impl<'de> Deserialize<'de> for FileUpload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FileUpload
impl RefUnwindSafe for FileUpload
impl Send for FileUpload
impl Sync for FileUpload
impl Unpin for FileUpload
impl UnwindSafe for FileUpload
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more