Struct async_openai::FineTuning
source · pub struct FineTuning<'c, C: Config> { /* private fields */ }
Expand description
Manage fine-tuning jobs to tailor a model to your specific training data.
Related guide: Fine-tune models
Implementations§
source§impl<'c, C: Config> FineTuning<'c, C>
impl<'c, C: Config> FineTuning<'c, C>
pub fn new(client: &'c Client<C>) -> Self
sourcepub async fn create(
&self,
request: CreateFineTuningJobRequest
) -> Result<FineTuningJob, OpenAIError>
pub async fn create( &self, request: CreateFineTuningJobRequest ) -> Result<FineTuningJob, OpenAIError>
Creates a job that fine-tunes a specified model from a given dataset.
Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.
sourcepub async fn list_paginated<Q>(
&self,
query: &Q
) -> Result<ListPaginatedFineTuningJobsResponse, OpenAIError>
pub async fn list_paginated<Q>( &self, query: &Q ) -> Result<ListPaginatedFineTuningJobsResponse, OpenAIError>
List your organization’s fine-tuning jobs
sourcepub async fn retrieve(
&self,
fine_tuning_job_id: &str
) -> Result<FineTuningJob, OpenAIError>
pub async fn retrieve( &self, fine_tuning_job_id: &str ) -> Result<FineTuningJob, OpenAIError>
Gets info about the fine-tune job.
sourcepub async fn cancel(
&self,
fine_tuning_job_id: &str
) -> Result<FineTuningJob, OpenAIError>
pub async fn cancel( &self, fine_tuning_job_id: &str ) -> Result<FineTuningJob, OpenAIError>
Immediately cancel a fine-tune job.
sourcepub async fn list_events<Q>(
&self,
fine_tuning_job_id: &str,
query: &Q
) -> Result<ListFineTuningJobEventsResponse, OpenAIError>
pub async fn list_events<Q>( &self, fine_tuning_job_id: &str, query: &Q ) -> Result<ListFineTuningJobEventsResponse, OpenAIError>
Get fine-grained status updates for a fine-tune job.
pub async fn list_checkpoints<Q>( &self, fine_tuning_job_id: &str, query: &Q ) -> Result<ListFineTuningJobCheckpointsResponse, OpenAIError>
Auto Trait Implementations§
impl<'c, C> Freeze for FineTuning<'c, C>
impl<'c, C> !RefUnwindSafe for FineTuning<'c, C>
impl<'c, C> Send for FineTuning<'c, C>where
C: Sync,
impl<'c, C> Sync for FineTuning<'c, C>where
C: Sync,
impl<'c, C> Unpin for FineTuning<'c, C>
impl<'c, C> !UnwindSafe for FineTuning<'c, C>
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