Skip to content

StaticRoute

Structure Class

StaticRoute dataclass

Bases: _SerdeShape

A static route to a single gateway target.

Attributes

fallback class-attribute instance-attribute
fallback: Fallback | None = ...

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

model class-attribute 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: str

The name of the target to route requests to.