mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
23 lines
491 B
Plaintext
23 lines
491 B
Plaintext
---
|
|
title: "Partition"
|
|
---
|
|
|
|
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
|
|
|
|
```python
|
|
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"`
|