pub struct FineTuningJobRequest {
pub model: String,
pub training_file: String,
pub suffix: Option<String>,
pub validation_file: Option<String>,
pub seed: Option<i64>,
pub metadata: Option<HashMap<String, String>>,
pub hyperparameters: Option<Hyperparameters>,
pub method: Option<FineTuningMethod>,
pub integrations: Option<Vec<Integration>>,
}Expand description
Request body for POST /fine_tuning/jobs
(job_create_params.py).
Fields§
§model: String§training_file: String§suffix: Option<String>§validation_file: Option<String>§seed: Option<i64>§metadata: Option<HashMap<String, String>>§hyperparameters: Option<Hyperparameters>Deprecated: prefer FineTuningJobRequest::method.
method: Option<FineTuningMethod>§integrations: Option<Vec<Integration>>Implementations§
Source§impl FineTuningJobRequest
impl FineTuningJobRequest
Sourcepub fn new(model: impl Into<String>, training_file: impl Into<String>) -> Self
pub fn new(model: impl Into<String>, training_file: impl Into<String>) -> Self
Create a request with the required model and training_file.
pub fn suffix(self, suffix: impl Into<String>) -> Self
pub fn validation_file(self, validation_file: impl Into<String>) -> Self
pub fn seed(self, seed: i64) -> Self
pub fn metadata(self, metadata: HashMap<String, String>) -> Self
pub fn hyperparameters(self, hyperparameters: Hyperparameters) -> Self
pub fn method(self, method: FineTuningMethod) -> Self
pub fn integrations(self, integrations: Vec<Integration>) -> Self
Trait Implementations§
Source§impl Clone for FineTuningJobRequest
impl Clone for FineTuningJobRequest
Source§fn clone(&self) -> FineTuningJobRequest
fn clone(&self) -> FineTuningJobRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FineTuningJobRequest
impl Debug for FineTuningJobRequest
Auto Trait Implementations§
impl Freeze for FineTuningJobRequest
impl RefUnwindSafe for FineTuningJobRequest
impl Send for FineTuningJobRequest
impl Sync for FineTuningJobRequest
impl Unpin for FineTuningJobRequest
impl UnsafeUnpin for FineTuningJobRequest
impl UnwindSafe for FineTuningJobRequest
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