Skip to content

[Azure] Add fine_tunes.delete CLI command #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions openai/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,11 @@ def cancel(cls, args):
resp = openai.FineTune.cancel(id=args.id)
print(resp)

@classmethod
def delete(cls, args):
resp = openai.FineTune.delete(sid=args.id)
print(resp)

@classmethod
def prepare_data(cls, args):

Expand Down Expand Up @@ -867,6 +872,10 @@ def help(args):
sub.add_argument("-i", "--id", required=True, help="The id of the fine-tune job")
sub.set_defaults(func=FineTune.cancel)

sub = subparsers.add_parser("fine_tunes.delete")
sub.add_argument("-i", "--id", required=True, help="The id of the fine-tune job")
sub.set_defaults(func=FineTune.delete)

# Image
sub = subparsers.add_parser("image.create")
sub.add_argument("-p", "--prompt", type=str, required=True)
Expand Down