Use this recipe when you want one reusable preset for multiple services instead of copying the same prompt, model, and routing defaults everywhere.Documentation Index
Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
Use this file to discover all available pages before exploring further.
Goal
- Standardize prompt and parameter defaults.
- Limit which providers can be used for a rollout or compliance boundary.
- Keep enough request context to explain why a request routed the way it did.
1. Create the preset
In Dashboard -> Settings -> Presets, create a preset with:- a clear name and slug
- a system prompt
- approved models
- provider preferences
- default parameter values such as
temperature
2. Keep the request body small
The main advantage of presets is that the caller no longer needs to repeat the same routing and prompt defaults in every request.3. Understand what the preset changes
The preset is applied before provider routing:- missing request parameters are filled from the preset
- the preset prompt is prepended to the system layer
- provider preferences narrow the list of available providers before ranking
- model restrictions are checked early instead of silently rerouting
4. Debug the routing outcome
When a request does not route the way you expected, open the request in Gateway -> Usage and inspect:- providers considered
- ranked candidates
- routing factors attached to each candidate
- workspace-policy or guardrail blocks
- why a provider was skipped
- why a request was blocked
- why a lower-cost or lower-latency target won the ranking
5. Operational pattern
Use this rollout pattern when changing routing behavior:- Create a new preset slug for the new policy.
- Move one low-risk caller to the new preset.
- Inspect request details and activity trends.
- Expand the rollout only after the routing outcomes match expectations.