Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt

Use this file to discover all available pages before exploring further.

final class atoti_ai_openai.ConnectionConfig

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

Example

>>> import os
>>> from atoti_ai_openai import ConnectionConfig, ChatConfig
>>> with tt.experimental({"ai"}):
...     connection_config = ConnectionConfig(
...         api_key=os.environ["AZURE_OPENAI_API_KEY"],
...         base_url="https://aiwopenai.openai.azure.com/openai/v1",
...     )
...     chat_config = ChatConfig(
...         completions_path="/chat/completions",
...         model="gpt-4.1",
...         temperature=0.0,
...         max_tokens=5000,
...         top_p=0.8,
...     )
...     ai_config = tt.AiConfig(connection=connection_config, chat=chat_config)
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.