Skip to content

Config

Config

Bases: BaseSettings

model

model: str = Field(
    ...,
    description="The model to use for LLM requests.",
    validation_alias=AliasChoices("MODEL", "model", "OPENAI_MODEL", "AZURE_OPENAI_MODEL"),
    frozen=False,
    deprecated=False,
)

api_type

api_type: str = Field(
    default="openai",
    description="The type of API to use for LLM requests. Options: 'openai', 'azure', etc.",
    validation_alias=AliasChoices("API_TYPE", "api_type"),
    frozen=False,
    deprecated=False,
)

base_url

base_url: str = Field(
    default="https://api.openai.com/v1",
    description="Base URL for the LLM API.",
    validation_alias=AliasChoices("BASE_URL", "base_url", "OPENAI_BASE_URL", "AZURE_ENDPOINT_URL"),
    frozen=False,
    deprecated=False,
)

api_key

api_key: str = Field(
    ...,
    description="API key for authenticating with the LLM service.",
    validation_alias=AliasChoices("API_KEY", "api_key", "OPENAI_API_KEY", "AZURE_OPENAI_API_KEY"),
    frozen=False,
    deprecated=False,
)

llm_config

llm_config: LLMConfig