openai-python icon indicating copy to clipboard operation
openai-python copied to clipboard

feat(cli): add support for fine_tuning.jobs

Open aanaseer opened this issue 1 year ago • 0 comments

  • [x] I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

This PR introduces enhancements to the CLI for managing fine_tuning.jobs. It supports .create, .retrieve, .list, .cancel, and .list_events

Additional context & links

Issue: #622

Examples on how to run in CLI

Create:

openai api fine_tuning.jobs.create \
  --model <model> \
  --training-file <training_file> \
  --hyperparameters <hyperparameters> \
  --suffix <suffix> \
  --validation-file <validation_file>

Retrieve:

openai api fine_tuning.jobs.retrieve \
  --id <fine_tuning_job_id>

List:

openai api fine_tuning.jobs.list \
  --after <after id> \
  --limit <limit>

Cancel:

openai api fine_tuning.jobs.cancel \
  --id <fine_tuning_job_id>

List Fine-Tuning Job Events Example:

openai api fine_tuning.jobs.list_events \
  --id <fine_tuning_job_id> \
  --after  <after id>  \
  --limit <limit>

aanaseer avatar Mar 09 '24 08:03 aanaseer