powered by
Shortcut that creates an OpenAI client from the OPENAI_API_KEY environment variable and retrieves a specific fine-tuning job.
OPENAI_API_KEY
retrieve_fine_tuning_job(fine_tuning_job_id)
A fine-tuning job object with $status, $model, and $fine_tuned_model (the resulting model ID when status is "succeeded").
$status
$model
$fine_tuned_model
"succeeded"
Character. Required. The fine-tuning job ID (e.g. "ftjob-abc123").
"ftjob-abc123"
if (FALSE) { Sys.setenv(OPENAI_API_KEY = "sk-xxxxxx") job <- retrieve_fine_tuning_job("ftjob-abc123") cat("Status:", job$status) if (job$status == "succeeded") cat("Model:", job$fine_tuned_model) }
Run the code above in your browser using DataLab