Struct async_openai::types::CreateFileRequest
source · pub struct CreateFileRequest {
pub file: FileInput,
pub purpose: String,
}
Fields§
§file: FileInput
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 Clone for CreateFileRequest
impl Clone for CreateFileRequest
source§fn clone(&self) -> CreateFileRequest
fn clone(&self) -> CreateFileRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CreateFileRequest
impl Debug for CreateFileRequest
source§impl Default for CreateFileRequest
impl Default for CreateFileRequest
source§fn default() -> CreateFileRequest
fn default() -> CreateFileRequest
Returns the “default value” for a type. Read more
source§impl PartialEq<CreateFileRequest> for CreateFileRequest
impl PartialEq<CreateFileRequest> for CreateFileRequest
source§fn eq(&self, other: &CreateFileRequest) -> bool
fn eq(&self, other: &CreateFileRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateFileRequest
Auto Trait Implementations§
impl RefUnwindSafe for CreateFileRequest
impl Send for CreateFileRequest
impl Sync for CreateFileRequest
impl Unpin for CreateFileRequest
impl UnwindSafe for CreateFileRequest
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