Skip to main content
Partitioning strategy for sorting: “model” (default) groups endpoints by model before sorting (fallback models remain fallbacks), “none” sorts all endpoints together regardless of model.

Example Usage

from openrouter.components import Partition

# Open enum: unrecognized values are captured as UnrecognizedStr
value: Partition = "model"

Values

This is an open enum. Unrecognized values will not fail type checks.
  • "model"
  • "none"