server/config.py
Application settings and environment configuration using Pydantic BaseSettings.
What it does
Application settings and environment configuration using Pydantic BaseSettings.
Key responsibilities
- Defines host/port settings, provider selection, model names, and runtime booleans.
- Includes default paths for the SQLite DB, Chroma vector store, and frontend dist folder.
- Supports both Ollama and OpenAI-compatible provider configuration for chat and embeddings.
- Parses debug mode strings flexibly and reads values from .env files with utf-8 encoding.
- Ignores extra environment values by default so only known settings are applied.
Related files
Explore other files in the Backend category.