Variables
Variables let you inject dynamic content at runtime without touching the prompt in the dashboard.Defining variables
In the prompt editor, add variables with a name, type, and whether they’re required:Using variables
Reference variables with{{double_braces}}:
{{name}} with the value passed in the request body.
Passing variables at runtime
Partials
Partials are reusable prompt fragments shared across multiple prompts. Like prompts, they’re versioned and published independently.Creating a partial
Go to Partials → create a new partial with a name and content:Using a partial
Reference partials with<<partial-slug>>:
<<references>> and bakes the current published versions into the prompt.
Why partials?
- Consistency — update one partial, every prompt that uses it picks up the change
- Separation of concerns — keep JSON formatting rules, brand voice, or compliance disclaimers in one place
- Versioned independently — partials version separately from prompts, so you can test a partial change without republishing every prompt
Fallback chains
Fallback chains keep your prompts working when a provider is down, rate-limited, or returns an error.Configuring a fallback chain
In the prompt editor, add fallback entries. Each entry has a model and optional triggers:
Provider enablement is a policy gate, not a fallback trigger: a prompt referencing a disabled provider returns
403 model_not_allowed so the misconfiguration gets fixed — the chain only responds to upstream failures.
Every model in the chain must support the prompt’s output format. When a structured output schema is set, fallback models that can’t produce JSON (json_object or json_schema) are skipped at request time — the editor flags them while you build the chain. Native and emulated JSON support both count; the gateway applies the right approach per model.
Chain strategy
Order matters. Put cheaper/faster models last:- Primary —
openai/gpt-4o(best quality, most expensive) - First fallback (
rate_limit) — anothergpt-4odeployment or same model different region - Second fallback (
provider_error,timeout) —anthropic/claude-3-5-sonnet-20241022 - Last resort (no triggers — catches anything) —
google/gemini-2.5-flash
Testing a chain
Use the model selector in the prompt runner’s Ready to test area: pick Main, any fallback entry, or a combination — each selected model runs against the request and the results appear as tabs, one per model. Fallback entries are run directly (the primary is never called unless Main is selected), so a broken chain entry surfaces here instead of in production.In the response
When a fallback triggers, the response includes headers:Structured output
Enforce a JSON schema on the model’s response. Define it in the prompt editor with the visual schema builder:- OpenAI →
response_format: { type: "json_schema", json_schema: ... } - Anthropic → tool use with
input_schema - Google →
response_schema - Mistral →
response_format: { type: "json_object" }
Testing prompts
The dashboard includes a playground (/playground) where you can test prompts interactively before publishing. Fill in variables, toggle streaming, and see the model’s output in real time.
For automated testing, define scenarios on each prompt — test cases with expected assertions. Run evals against both the published version and a draft to compare results before publishing.