pub struct FineTuningJobCreateRequestBuilder { /* private fields */ }Expand description
表示 fine-tuning job 创建构建器。
Implementations§
Source§impl FineTuningJobCreateRequestBuilder
impl FineTuningJobCreateRequestBuilder
pub fn model(self, model: impl Into<String>) -> Self
pub fn training_file(self, training_file: impl Into<String>) -> Self
pub fn validation_file(self, validation_file: impl Into<String>) -> Self
pub fn suffix(self, suffix: impl Into<String>) -> Self
pub fn seed(self, seed: u64) -> Self
pub fn hyperparameters( self, hyperparameters: impl Into<FineTuningJobHyperparameters>, ) -> Self
pub fn integration( self, integration: impl Into<FineTuningJobIntegration>, ) -> Self
pub fn metadata(self, metadata: BTreeMap<String, String>) -> Self
pub fn params(self, params: FineTuningJobCreateParams) -> Self
pub fn body_value(self, body: impl Into<JsonPayload>) -> Self
pub fn json_body<U>(self, body: &U) -> Result<Self>where
U: Serialize,
pub fn extra_header( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn extra_query( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn extra_body( self, key: impl Into<String>, value: impl Into<JsonPayload>, ) -> Self
pub fn provider_option( self, key: impl Into<String>, value: impl Into<JsonPayload>, ) -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn max_retries(self, max_retries: u32) -> Self
pub fn cancellation_token(self, token: CancellationToken) -> Self
pub async fn send(self) -> Result<FineTuningJob>
pub async fn send_with_meta(self) -> Result<ApiResponse<FineTuningJob>>
pub async fn send_raw(self) -> Result<Response<Bytes>>
Trait Implementations§
Source§impl Clone for FineTuningJobCreateRequestBuilder
impl Clone for FineTuningJobCreateRequestBuilder
Source§fn clone(&self) -> FineTuningJobCreateRequestBuilder
fn clone(&self) -> FineTuningJobCreateRequestBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for FineTuningJobCreateRequestBuilder
impl !RefUnwindSafe for FineTuningJobCreateRequestBuilder
impl Send for FineTuningJobCreateRequestBuilder
impl Sync for FineTuningJobCreateRequestBuilder
impl Unpin for FineTuningJobCreateRequestBuilder
impl UnsafeUnpin for FineTuningJobCreateRequestBuilder
impl !UnwindSafe for FineTuningJobCreateRequestBuilder
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