Skip to content

Conversation

@saanikaguptamicrosoft
Copy link
Collaborator

@saanikaguptamicrosoft saanikaguptamicrosoft commented Jan 13, 2026

Notes

Testing

List command

help
image

default table output and 10 rows
image

json output
image

with top flag
image

Show command

help
image

default table output
image

image

yaml output
image

image

json output
image

image

with training logs
image

image image

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds structured output formatting capabilities to the Azure AI fine-tuning extension, enabling table, JSON, and YAML output formats for job listing and detail commands. It introduces view models for better separation of concerns and improves the user experience with cleaner, more organized output.

Changes:

  • Added view models and formatting helpers for displaying fine-tuning job data in multiple formats
  • Implemented custom Duration type with JSON/YAML marshaling for human-readable time durations
  • Refactored show and list commands to support multiple output formats (table/JSON/YAML)

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 16 comments.

Show a summary per file
File Description
cli/azd/extensions/azure.ai.finetune/pkg/models/views.go New file defining view models for table display and conversion methods from domain models
cli/azd/extensions/azure.ai.finetune/pkg/models/finetune.go Added Duration type, JSON/YAML struct tags, and EstimatedFinish field to job detail model
cli/azd/extensions/azure.ai.finetune/internal/utils/output.go New file implementing generic output formatting for table, JSON, and YAML using reflection
cli/azd/extensions/azure.ai.finetune/internal/utils/status.go Added IsTerminalStatus helper function for status checking
cli/azd/extensions/azure.ai.finetune/internal/providers/openai/conversions.go Added duration calculation and conditional timestamp handling for terminal/non-terminal states
cli/azd/extensions/azure.ai.finetune/internal/cmd/operations.go Refactored show/list commands to use new formatting utilities with output format flags

@saanikaguptamicrosoft saanikaguptamicrosoft changed the title Updating formatting for list and show commands as per specs Updating formatting for list and show commands as per specs for finetuning extension Jan 13, 2026
@saanikaguptamicrosoft saanikaguptamicrosoft enabled auto-merge (squash) January 14, 2026 04:29
@saanikaguptamicrosoft saanikaguptamicrosoft merged commit a8a3e0e into Azure:main Jan 14, 2026
18 checks passed
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.

3 participants