Struct async_openai::types::CreateFileRequestArgs  
source · pub struct CreateFileRequestArgs { /* private fields */ }Expand description
Builder for CreateFileRequest.
Implementations§
source§impl CreateFileRequestArgs
 
impl CreateFileRequestArgs
sourcepub fn file<VALUE: Into<FileInput>>(&mut self, value: VALUE) -> &mut Self
 
pub fn file<VALUE: Into<FileInput>>(&mut self, value: VALUE) -> &mut Self
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.
sourcepub fn purpose<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
 
pub fn purpose<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The intended purpose of the uploaded documents.
Use “fine-tune” for Fine-tuning. This allows us to validate the format of the uploaded file.
sourcepub fn build(&self) -> Result<CreateFileRequest, OpenAIError>
 
pub fn build(&self) -> Result<CreateFileRequest, OpenAIError>
Trait Implementations§
source§impl Clone for CreateFileRequestArgs
 
impl Clone for CreateFileRequestArgs
source§fn clone(&self) -> CreateFileRequestArgs
 
fn clone(&self) -> CreateFileRequestArgs
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 more