Partition - TypeScript SDK

Partition type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

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

1import { Partition } from "@openrouter/sdk/models";
2
3let value: Partition = "model";
4
5// Open enum: unrecognized values are captured as Unrecognized<string>

Values

1"model" | "none" | Unrecognized<string>