atoti_ai_openai.ChatOptions#
- final class atoti_ai_openai.ChatOptions#
Chat options for OpenAI.
Warning
This feature is
experimental, its key is"ai".See the corresponding Javadoc for more details.
See also
The other
ChatOptionsimplementations.- extra_body: Mapping[str, object] | None = None#
Additional parameters for OpenAI-compatible servers.
- frequency_penalty: float | None = None#
Penalty for token frequency.
Positive values discourage repetition.
- internal_tool_execution_enabled: bool | None = None#
Handle tool calls internally vs proxy to client.
- logit_bias: Mapping[int, int] | None = None#
Token probability biases.
Maps token IDs to bias values from -100 to 100.
- 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.
- output_audio_format: str | None = None#
Audio format (e.g.
"mp3","opus","aac","flac","wav","pcm16").
- presence_penalty: float | None = None#
Penalty for token presence.
Positive values encourage topic diversity.
- retry_backoff_initial_interval: int | None = None#
Initial sleep duration (in seconds) for the exponential backoff policy.
- retry_exclude_on_http_codes: Sequence[int] | None = None#
List of HTTP status codes that should not trigger a retry.
- retry_on_client_errors: bool | None = None#
If
False, throw aNonTransientAiExceptionand do not attempt retry for 4xx client error codes.
- retry_on_http_codes: Sequence[int] | None = None#
List of HTTP status codes that should trigger a retry.
- temperature: float | None = None#
Controls randomness in responses from 0.0 (deterministic) to 2.0 (creative).
- tool_choice: str | None = None#
Tool/function calling behavior (
"none","auto", or a specific function name).