config/settings.py

CSV-AI · backend/app/config/settings.py · python · MIT
ai

Platform settings backed by environment variables. Originally the CSV-AI Streamlit settings; now the single source of truth for the Enterprise RAG platform. Values come from the process environment or a ``.env`` file. Nothing in the code base should read ``os.environ`` directly.

# Source: https://github.com/Safiullah-Rahu/knowledge-intelligence | License: MIT | Copyright 2023-2026 Safiullah Rahu
# Provided via justclaw.it.com; keep this notice with the code.
"""Platform settings backed by environment variables.

Originally the CSV-AI Streamlit settings; now the single source of truth for the
Enterprise RAG platform. Values come from the process environment or a ``.env``
file. Nothing in the code base should read ``os.environ`` directly.
"""

from __future__ import annotations

from functools import lru_cache
from typing import Annotated, Literal

from pydantic import Field, field_validator
from pydantic_settings import BaseSettings, NoDecode, SettingsConfigDict

ProviderName = Literal["openai", "anthropic", "ollama"]
CsvList = Annotated[list[str], NoDecode]


clas

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key