Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion spec/router-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ paths:
$ref: '#/components/headers/RouterIdempotentReplayedHeader'
X-Comfy-Router-Dropped-Params:
$ref: '#/components/headers/RouterDroppedParamsHeader'
X-Comfy-Router-Provider:
$ref: '#/components/headers/RouterProviderHeader'
Preference-Applied:
description: 'RFC 7240. `respond-async` when this `202` honours the `Prefer: respond-async` the request sent. Absent when the request did not send that preference, including a same-key replay of an already-queued call.'
required: false
Expand Down Expand Up @@ -1438,7 +1440,7 @@ components:
- nosniff
example: nosniff
RouterProviderHeader:
description: The provider of the Router leg that served this call, present on every successful run response - the provider Comfy Router chose to serve a call that named no `model_provider` (the model's own, or another Comfy routed it to), the alternate provider `model_provider` named, or the provider a `fallback_provider` retry landed on (which `X-Comfy-Router-Fallback-Provider` also names, only in that case) - which is the leg Router dispatched to and not necessarily the vendor that produced the output, since a proxy-level cascade inside a native leg (the `vertexai` Gemini image chain, for one) can hand the call to a different vendor that no header names. When the caller named no `model_provider` at all, Comfy Router selected the serving provider, and the value may be `comfy` - meaning Comfy Router chose the leg - rather than a specific provider name, so a caller that named no provider should not read this value as identifying one vendor. Absent on an error response. It is stored with the `Idempotency-Key` record and replayed unchanged on a same-key retry; a retry of a call recorded before this header existed carries none, and a record written before the value was `comfy` replays its original value.
description: The provider of the Router leg that served this call, present on every successful run response - the provider Comfy Router chose to serve a call that named no `model_provider` (the model's own, or another Comfy routed it to), the alternate provider `model_provider` named, or the provider a `fallback_provider` retry landed on (which `X-Comfy-Router-Fallback-Provider` also names, only in that case) - which is the leg Router dispatched to and not necessarily the vendor that produced the output, since a proxy-level cascade inside a native leg (the `vertexai` Gemini image chain, for one) can hand the call to a different vendor that no header names. When the caller named no `model_provider` at all, Comfy Router selected the serving provider, and the value may be `comfy` - meaning Comfy Router chose the leg - rather than a specific provider name, so a caller that named no provider should not read this value as identifying one vendor. Also present on the `202` of a run handed to the queue, where it names the leg the call was queued on, under the same rule. Absent on an error response. It is stored with the `Idempotency-Key` record and replayed unchanged on a same-key retry; a retry of a call recorded before this header existed carries none, and a record written before the value was `comfy` replays its original value.
required: false
schema:
type: string
Expand Down
Loading