Struct async_openai::FineTunes
source · pub struct FineTunes;
Expand description
Manage fine-tuning jobs to tailor a model to your specific training data.
Related guide: Fine-tune models
Implementations§
source§impl FineTunes
impl FineTunes
sourcepub async fn create(
client: &Client,
request: CreateFineTuneRequest
) -> Result<FineTune, OpenAIError>
pub async fn create(
client: &Client,
request: CreateFineTuneRequest
) -> Result<FineTune, 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(client: &Client) -> Result<ListFineTuneResponse, OpenAIError>
pub async fn list(client: &Client) -> Result<ListFineTuneResponse, OpenAIError>
List your organization’s fine-tuning jobs
sourcepub async fn retrieve(
client: &Client,
fine_tune_id: &str
) -> Result<FineTune, OpenAIError>
pub async fn retrieve(
client: &Client,
fine_tune_id: &str
) -> Result<FineTune, OpenAIError>
Gets info about the fine-tune job.
sourcepub async fn cancel(
client: &Client,
fine_tune_id: &str
) -> Result<FineTune, OpenAIError>
pub async fn cancel(
client: &Client,
fine_tune_id: &str
) -> Result<FineTune, OpenAIError>
Immediately cancel a fine-tune job.
sourcepub async fn list_events(
client: &Client,
fine_tune_id: &str
) -> Result<ListFineTuneEventsResponse, OpenAIError>
pub async fn list_events(
client: &Client,
fine_tune_id: &str
) -> Result<ListFineTuneEventsResponse, OpenAIError>
Get fine-grained status updates for a fine-tune job.