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>
23 lines
588 B
Plaintext
23 lines
588 B
Plaintext
---
|
|
title: "PriceSource"
|
|
---
|
|
|
|
Price source for the Pareto frontier cost axis. "prompt" uses catalog list price (endpoint.pricing.prompt). "weighted_avg" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to "prompt".
|
|
|
|
## Example Usage
|
|
|
|
```python
|
|
from openrouter.components import PriceSource
|
|
|
|
# Open enum: unrecognized values are captured as UnrecognizedStr
|
|
value: PriceSource = "prompt"
|
|
```
|
|
|
|
|
|
## Values
|
|
|
|
This is an open enum. Unrecognized values will not fail type checks.
|
|
|
|
- `"prompt"`
|
|
- `"weighted_avg"`
|