#[non_exhaustive]pub struct CreateFineTuningJobRequest {
pub model: String,
pub training_file: String,
pub validation_file: Option<String>,
pub suffix: Option<String>,
pub seed: Option<u64>,
pub metadata: BTreeMap<String, String>,
pub extra: BTreeMap<String, Value>,
}Expand description
EN: Request body for POST /v1/fine_tuning/jobs.
中文:POST /v1/fine_tuning/jobs 的请求体。
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.model: StringEN: Base model to fine-tune. 中文:要微调的基础模型。
training_file: StringEN: Uploaded training file id. 中文:已上传的训练文件 ID。
validation_file: Option<String>EN: Optional uploaded validation file id. 中文:可选的已上传验证文件 ID。
suffix: Option<String>EN: Optional suffix for the fine-tuned model name. 中文:微调后模型名称的可选后缀。
seed: Option<u64>EN: Optional seed for reproducibility. 中文:用于可复现性的可选 seed。
metadata: BTreeMap<String, String>EN: Optional metadata attached to the job. 中文:附加到任务的可选元数据。
extra: BTreeMap<String, Value>EN: Forward-compatible optional fields not yet covered by handwritten types. 中文:手写类型尚未覆盖的前向兼容可选字段。
Implementations§
Source§impl CreateFineTuningJobRequest
impl CreateFineTuningJobRequest
Sourcepub fn builder() -> CreateFineTuningJobRequestBuilder
pub fn builder() -> CreateFineTuningJobRequestBuilder
EN: Starts building a fine-tuning job request. 中文:开始构建 fine-tuning job 请求。
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 PartialEq for CreateFineTuningJobRequest
impl PartialEq for CreateFineTuningJobRequest
Source§fn eq(&self, other: &CreateFineTuningJobRequest) -> bool
fn eq(&self, other: &CreateFineTuningJobRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq 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