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
608 B
Plaintext
24 lines
608 B
Plaintext
---
|
|
title: "ReasoningContext"
|
|
---
|
|
|
|
Controls which reasoning is available to the model. `auto` uses the model default (same as omitting); `all_turns` includes reasoning from earlier turns passed in input; `current_turn` limits to the current turn only. Only supported by OpenAI GPT-5.6 and newer.
|
|
|
|
## Example Usage
|
|
|
|
```python
|
|
from openrouter.components import ReasoningContext
|
|
|
|
# Open enum: unrecognized values are captured as UnrecognizedStr
|
|
value: ReasoningContext = "auto"
|
|
```
|
|
|
|
|
|
## Values
|
|
|
|
This is an open enum. Unrecognized values will not fail type checks.
|
|
|
|
- `"auto"`
|
|
- `"all_turns"`
|
|
- `"current_turn"`
|