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
516 B
Plaintext
23 lines
516 B
Plaintext
---
|
|
title: "ResponseFormat"
|
|
---
|
|
|
|
The response format. "json" (default) returns \{ text, usage }; "verbose_json" additionally returns task, language, duration, and segment-level timestamps (OpenAI-compatible providers only).
|
|
|
|
## Example Usage
|
|
|
|
```python
|
|
from openrouter.operations import ResponseFormat
|
|
|
|
# Open enum: unrecognized values are captured as UnrecognizedStr
|
|
value: ResponseFormat = "json"
|
|
```
|
|
|
|
|
|
## Values
|
|
|
|
This is an open enum. Unrecognized values will not fail type checks.
|
|
|
|
- `"json"`
|
|
- `"verbose_json"`
|