Skip to content
Open
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
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,11 @@ import (
// ...
)

// A struct that will be converted to a Structured Outputs response schema
// A struct that will be converted to a Structured Outputs response schema.
//
// Avoid `omitempty` in JSON tags here: jsonschema treats those fields as optional
// and leaves them out of the schema's required array. With Strict enabled, the API
// can reject that schema; otherwise, the model may omit the fields.
type HistoricalComputer struct {
Origin Origin `json:"origin" jsonschema_description:"The origin of the computer"`
Name string `json:"full_name" jsonschema_description:"The name of the device model"`
Expand Down