Prerequisites
Set your OpenAI API key:Basic usage
Streaming
Stream responses from OpenAI with real-time validation:Tools/Function calling
Use OpenAI’s function calling with Guardrails for structured data:Using validators
Add validators to ensure output quality:Supported models
Guardrails supports all OpenAI models including:gpt-4ogpt-4-turbogpt-4gpt-3.5-turbogpt-3.5-turbo-instruct