Skip to main content

final class atoti_ai_openai.ConnectionConfig

Configuration for connecting to OpenAI.
This feature is experimental, its key is "ai".

Example

See also: The other ConnectionConfig implementations.

api_key : str | None = None

OpenAI API key for authentication.

base_url : str | None = None

Base URL for the OpenAI API. Useful for OpenAI-compatible providers. The path to the API (such as /v1) must be included.

custom_headers : Mapping[str, str] | None = None

Custom HTTP headers to add to every request.

max_retries : int | None = None

Maximum number of retries for requests to OpenAI.

organization_id : str | None = None

OpenAI organization ID.

timeout : timedelta | None = None

Timeout for requests to OpenAI.