Using Structured Outputs
When logging requests that use structured outputs (JSON schemas), include the schema configuration in theparameters field using the response_format.json_schema structure.
Example:
Related Documentation
- Custom Logging Guide - General guide to logging requests
- Structured Outputs in Prompt Registry - Creating prompts with structured outputs
- Metadata Documentation - Using metadata for tracking
Headers
API key to authorize the operation.
Body
application/json
- Completion Template
- Chat Template
- Completion Template
- Chat Template
Model parameters including temperature, max_tokens, etc. Can also include structured output configuration via response_format.json_schema. See documentation for structured output examples.
Custom key-value pairs for tracking additional request information. Keys are limited to 1024 characters.
The ID of the prompt template used for this request. This is useful for tracking which prompt was used in the request.
Required range:
x > 0Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Required range:
0 <= x <= 100
