#[non_exhaustive]pub struct CreateFineTuningJobRequestBuilder { /* private fields */ }Expand description
EN: Builder for create-fine-tuning-job requests. 中文:创建 fine-tuning job 请求的构建器。
Implementations§
Source§impl CreateFineTuningJobRequestBuilder
impl CreateFineTuningJobRequestBuilder
Sourcepub fn training_file(self, training_file: impl Into<String>) -> Self
pub fn training_file(self, training_file: impl Into<String>) -> Self
EN: Sets the uploaded training file id. 中文:设置已上传的训练文件 ID。
Sourcepub fn validation_file(self, validation_file: impl Into<String>) -> Self
pub fn validation_file(self, validation_file: impl Into<String>) -> Self
EN: Sets the optional validation file id. 中文:设置可选的验证文件 ID。
Sourcepub fn suffix(self, suffix: impl Into<String>) -> Self
pub fn suffix(self, suffix: impl Into<String>) -> Self
EN: Sets the optional model suffix. 中文:设置可选的模型后缀。
Sourcepub fn seed(self, seed: u64) -> Self
pub fn seed(self, seed: u64) -> Self
EN: Sets the optional reproducibility seed. 中文:设置可选的可复现 seed。
Sourcepub fn metadata(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn metadata(self, key: impl Into<String>, value: impl Into<String>) -> Self
EN: Adds a metadata entry. 中文:添加一项元数据。
Sourcepub fn extra(self, name: impl Into<String>, value: Value) -> Self
pub fn extra(self, name: impl Into<String>, value: Value) -> Self
EN: Adds a forward-compatible JSON field. 中文:添加前向兼容的 JSON 字段。
Sourcepub fn build(self) -> Result<CreateFineTuningJobRequest, LingerError>
pub fn build(self) -> Result<CreateFineTuningJobRequest, LingerError>
EN: Builds and validates the request. 中文:构建并校验请求。
Trait Implementations§
Source§impl Clone for CreateFineTuningJobRequestBuilder
impl Clone for CreateFineTuningJobRequestBuilder
Source§fn clone(&self) -> CreateFineTuningJobRequestBuilder
fn clone(&self) -> CreateFineTuningJobRequestBuilder
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 Default for CreateFineTuningJobRequestBuilder
impl Default for CreateFineTuningJobRequestBuilder
Source§fn default() -> CreateFineTuningJobRequestBuilder
fn default() -> CreateFineTuningJobRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateFineTuningJobRequestBuilder
impl RefUnwindSafe for CreateFineTuningJobRequestBuilder
impl Send for CreateFineTuningJobRequestBuilder
impl Sync for CreateFineTuningJobRequestBuilder
impl Unpin for CreateFineTuningJobRequestBuilder
impl UnsafeUnpin for CreateFineTuningJobRequestBuilder
impl UnwindSafe for CreateFineTuningJobRequestBuilder
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