mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
24 lines
405 B
Plaintext
24 lines
405 B
Plaintext
---
|
|
title: "ErrorCode"
|
|
---
|
|
|
|
## Example Usage
|
|
|
|
```python
|
|
from openrouter.components import ErrorCode
|
|
|
|
# Open enum: unrecognized values are captured as UnrecognizedStr
|
|
value: ErrorCode = "invalid_tool_input"
|
|
```
|
|
|
|
|
|
## Values
|
|
|
|
This is an open enum. Unrecognized values will not fail type checks.
|
|
|
|
- `"invalid_tool_input"`
|
|
- `"unavailable"`
|
|
- `"max_uses_exceeded"`
|
|
- `"too_many_requests"`
|
|
- `"query_too_long"`
|