Skip to content

feat(cli): add fine-tuning preview command#466

Merged
blainekasten merged 3 commits into
mainfrom
cursor/cli-sdk-updates-da4c
Jul 23, 2026
Merged

feat(cli): add fine-tuning preview command#466
blainekasten merged 3 commits into
mainfrom
cursor/cli-sdk-updates-da4c

Conversation

@cursor

@cursor cursor Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add tg fine-tuning preview / tg ft preview for the new client.fine_tuning.preview SDK endpoint
  • expose preview parameters for model, training file, top-k rows, train-on-inputs, and training method
  • cover JSON request payloads, table output, and JSON-mode smoke coverage

Tests

  • python3 -m pytest tests/cli/test_fine_tuning.py -q
  • python3 -m pytest tests/cli/test_json_mode_pipeable_to_jq.py::TestJSONMode::test_fine_tuning_json_mode -q
Open in Web View Automation 

Co-authored-by: Blaine Kasten <blainekasten@gmail.com>
@broly-code-security-scanner

Copy link
Copy Markdown

Broly Security Scan

Note

Clean scan
No vulnerabilities detected in this PR.

Note

Re-scan this PR anytime with /broly scan — useful after /broly undismiss, or to refresh findings without a new push.

Broly — SAST (zai-org/GLM-5.2) · Secrets · SCA · GH Actions (zizmor) · Containers · SBOM · Powered by Together AI

@blainekasten

Copy link
Copy Markdown
Contributor

@cursoragent fix lint and also incorprorate any changes from your previous PR (#465) that you think should be considered here. I'm going to close that other PR

@cursor

cursor Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Implemented and pushed:

Environment setup should run uv sync --all-extras for future agents.

Open in Web Open in Cursor 

@blainekasten
blainekasten marked this pull request as ready for review July 23, 2026 14:52
cursoragent and others added 2 commits July 23, 2026 14:54
Co-authored-by: Blaine Kasten <blainekasten@gmail.com>
Co-authored-by: Blaine Kasten <blainekasten@gmail.com>
@blainekasten
blainekasten merged commit 136b566 into main Jul 23, 2026
12 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 23, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Documentation sync: added docs for tg fine-tuning preview in mintlify-docs#1308.

  • New Preview section in reference/cli/finetune.mdx (flags, table output, examples)
  • Cross-link from docs/fine-tuning/data-preparation.mdx
  • July 23 changelog entry
Open in Web View Automation 

Sent by Cursor Automation: Update mintlify-docs from code changes

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.

2 participants