Skip to content

Add chat fine-tuning CLI commands (Issue #622)#3069

Open
aayushpawar11 wants to merge 1 commit intoopenai:mainfrom
aayushpawar11:feature/chat-finetune-cli
Open

Add chat fine-tuning CLI commands (Issue #622)#3069
aayushpawar11 wants to merge 1 commit intoopenai:mainfrom
aayushpawar11:feature/chat-finetune-cli

Conversation

@aayushpawar11
Copy link
Copy Markdown

@aayushpawar11 aayushpawar11 commented Apr 7, 2026

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

Changes being requested

Added chat fine-tuning CLI command group with create, list, and apply subcommands.

  • create -> starts fine-tuning jobs
  • list -> lists jobs
  • apply -> convenience alias for resume
  • added unit tests
  • all tests passing

@aayushpawar11 aayushpawar11 requested a review from a team as a code owner April 7, 2026 18:54
@aayushpawar11 aayushpawar11 changed the title Add chat fine-tuning CLI commands (#622) Add chat fine-tuning CLI commands Apr 7, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 32b7ef7a6c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

class CLIChatFineTune:
@staticmethod
def create(args: CLIChatFineTuneCreateArgs) -> None:
hyperparameters = json.loads(str(args.hyperparameters)) if is_given(args.hyperparameters) else omit
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Handle malformed hyperparameters JSON as a CLI error

When chat.fine_tune.create is called with an invalid --hyperparameters payload, json.loads(...) raises JSONDecodeError, which is not caught by _cli.main()'s error handling (it only catches APIError, CLIError, and pydantic.ValidationError). This causes a raw traceback instead of a user-facing CLI error message, so a simple input mistake produces an ungraceful failure path.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted. This is a potential enhancement for future error handling.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@aayushpawar11 aayushpawar11 changed the title Add chat fine-tuning CLI commands Add chat fine-tuning CLI commands (Issue #622) Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant