mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
24 lines
735 B
Plaintext
24 lines
735 B
Plaintext
---
|
|
title: "Period"
|
|
---
|
|
|
|
Time grain of each row. `day` (default) returns the per-UTC-day series; `week` buckets by ISO week start; `month` buckets by month start. With `category` or `language_type` only `week` (default) and `month` are available — `day` is rejected with a 400 because those datasets are aggregated weekly. For those sampled datasets `period=month` buckets each week by its week-start month, so totals are approximate at month boundaries.
|
|
|
|
## Example Usage
|
|
|
|
```python
|
|
from openrouter.operations import Period
|
|
|
|
# Open enum: unrecognized values are captured as UnrecognizedStr
|
|
value: Period = "day"
|
|
```
|
|
|
|
|
|
## Values
|
|
|
|
This is an open enum. Unrecognized values will not fail type checks.
|
|
|
|
- `"day"`
|
|
- `"week"`
|
|
- `"month"`
|