ProviderSortPartition - TypeScript SDK

ProviderSortPartition method reference

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 { ProviderSortPartition } from "@openrouter/sdk/models";
2
3let value: ProviderSortPartition = "model";

Values

This is an open enum. Unrecognized values will be captured as the Unrecognized<string> branded type.

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