Skip to content

StaticRouteDict

Dictionary Type

StaticRouteDict

Bases: TypedDict

Dictionary form of StaticRoute.

Attributes

fallback instance-attribute
fallback: Fallback | FallbackDict | None

The fallback configuration for this route. Supported only for inference targets.

model instance-attribute
model: str | None

The model ID to send to the target. Supported only for inference targets. If you don't specify a model, the gateway sends the model from the original request.

target_name instance-attribute
target_name: Required[str]

The name of the target to route requests to.