Use this recipe when one request should prefer a specific provider path without changing your workspace-wide routing defaults.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
- Try providers in a preferred order.
- Restrict a request to an approved provider subset.
- Ignore one provider temporarily without editing presets.
1. Try providers in a specific order
Useprovider.order when you already know the preferred route sequence.
2. Restrict the request to a fixed provider subset
Useprovider.only when the request must stay inside one small allow list.
3. Remove one provider from consideration
Useprovider.ignore when one provider should be skipped for a request or short-lived rollout.
- one provider is degraded
- you are validating another provider path
- you want to compare routing outcomes without editing a preset
4. Combine the controls carefully
You can combine these controls, but keep the intent simple:- use
orderto express preference - use
onlyto enforce the candidate pool - use
ignoreto carve one provider out
onlyto keep the request insidegoogle-vertexandgoogle-vertex-euorderto prefergoogle-vertex-eufirstsort: "latency"to rank inside that allowed set
5. When to move this into a preset
If the same provider rules appear in multiple services, stop copying them per request and move them into a preset instead. Use request-level routing when the override is:- temporary
- caller-specific
- tied to one user flow