Skip to main content
atoti_ai_openai.ConnectionConfig(
    *,
    api_key: str | None = None,
    base_url: str | None = None,
    organization_id: str | None = None,
    custom_headers: Mapping[str, str] | None = None,
    max_retries: int | None = None,
    timeout: timedelta | None = None,
)
Configuration for connecting to OpenAI.
See also: The other ConnectionConfig implementations.

Attributes

api_key

OpenAI API key for authentication.

base_url

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

organization_id

OpenAI organization ID.

custom_headers

Custom HTTP headers to add to every request.

max_retries

Maximum number of retries for requests to OpenAI.

timeout

Timeout for requests to OpenAI.