Skip to main content

final class atoti_ai_openai.ConnectionConfig

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

Example

Then pass the config to the session:
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.

organization_id : str | None = None

OpenAI organization ID.

project_id : str | None = None

OpenAI project ID.