Skip to content

Commit 1a23fdd

Browse files
authored
Update fallbacks.mdx
added info on new fallback step response header `cf-aig-step`
1 parent ee332ed commit 1a23fdd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/content/docs/ai-gateway/configuration/fallbacks.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,12 @@ graph TD
3030
You can add as many fallbacks as you need, just by adding another object in the array.
3131

3232
<Render file="universal-gateway-example" />
33+
34+
## Response Header(cf-aig-step)
35+
36+
When using the Universal Endpoint with fallbacks, the response header `cf-aig-step` indicates which model successfully processed the request by returning the step number. This header provides visibility into whether a fallback was triggered and which model ultimately processed the response.
37+
38+
- `cf-aig-step:0` – The first (primary) model was used successfully.
39+
- `cf-aig-step:1` – The request fell back to the second model.
40+
- `cf-aig-step:2` – The request fell back to the third model.
41+
- Subsequent steps – Each fallback increments the step number by 1.

0 commit comments

Comments
 (0)