atoti_ai_openai.ChatConfig#
- final class atoti_ai_openai.ChatConfig#
Chat config for OpenAI.
Warning
This feature is
experimental, its key is"ai".See the corresponding Javadoc for more details.
See also
The other
ChatConfigimplementations.- extra_body: Mapping[str, bool | int | float | str] | None = None#
Additional parameters for OpenAI-compatible servers.
- max_completion_tokens: int | None = None#
Maximum number of tokens to generate for reasoning models (e.g. o1, o3).
Mutually exclusive with
max_tokens.
- max_tokens: int | None = None#
Maximum number of tokens to generate in the response.
For non-reasoning models. Mutually exclusive with
max_completion_tokens.
- retry_backoff_initial_interval: timedelta | None = None#
Initial sleep duration for the exponential backoff policy.
- retry_on_client_errors: bool | None = None#
If
False, throw aNonTransientAiExceptionand do not attempt retry for 4xx client error codes.
- temperature: float | None = None#
Controls randomness in responses from 0.0 (deterministic) to 2.0 (creative).