pub struct CreateFineTuningJobRequest {
pub model: String,
pub training_file: String,
pub validation_file: Option<String>,
pub hyperparameters: Option<Value>,
pub suffix: Option<String>,
pub integrations: Option<Vec<FineTuneIntegration>>,
pub seed: Option<u64>,
pub method: Option<FineTuneMethod>,
pub metadata: Option<HashMap<String, String>>,
pub extra_body_map: Option<Map<String, Value>>,
}Expand description
The body of POST /fine_tuning/jobs.
Fields§
§model: StringThe base model to fine-tune.
training_file: StringThe ID of the uploaded JSONL training file.
validation_file: Option<String>The ID of the uploaded JSONL validation file.
hyperparameters: Option<Value>The hyperparameters of the job, as raw JSON (each field a
number or "auto").
suffix: Option<String>A suffix of up to 18 characters appended to the fine-tuned model name.
integrations: Option<Vec<FineTuneIntegration>>The integration hooks for the job.
seed: Option<u64>The seed controlling the reproducibility of the job.
method: Option<FineTuneMethod>The fine-tuning method to use.
metadata: Option<HashMap<String, String>>Arbitrary key-value metadata (up to 16 pairs) attached to the job.
extra_body_map: Option<Map<String, Value>>Additional JSON properties flattened into the request body, for fields not covered by the typed struct.
Trait Implementations§
Source§impl Clone for CreateFineTuningJobRequest
impl Clone for CreateFineTuningJobRequest
Source§fn clone(&self) -> CreateFineTuningJobRequest
fn clone(&self) -> CreateFineTuningJobRequest
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 CreateFineTuningJobRequest
impl Debug for CreateFineTuningJobRequest
Source§impl<'de> Deserialize<'de> for CreateFineTuningJobRequest
impl<'de> Deserialize<'de> for CreateFineTuningJobRequest
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
Source§impl Post for CreateFineTuningJobRequest
impl Post for CreateFineTuningJobRequest
Source§impl PostNoStream for CreateFineTuningJobRequest
impl PostNoStream for CreateFineTuningJobRequest
Auto Trait Implementations§
impl Freeze for CreateFineTuningJobRequest
impl RefUnwindSafe for CreateFineTuningJobRequest
impl Send for CreateFineTuningJobRequest
impl Sync for CreateFineTuningJobRequest
impl Unpin for CreateFineTuningJobRequest
impl UnsafeUnpin for CreateFineTuningJobRequest
impl UnwindSafe for CreateFineTuningJobRequest
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