# Smriti - Environment Variables
# Copy this file to .env and fill in the values.
#
# The backend loads this file via python-dotenv at startup so API keys
# are available even when the server is launched by a process that does
# not inherit your shell profile (e.g. uvicorn from an IDE, a CI
# runner, or a subprocess-based tool host like Claude Code).
#
# Existing env vars are NOT overridden — if you also export a key in
# your shell profile, the shell value takes precedence.

# Database
DATABASE_URL=postgresql://smriti:smriti@localhost:5432/smriti

# Provider API keys — uncomment and set the ones you want to use.
# If unset, the backend falls back to config/providers.yaml, then to
# the mock provider (deterministic responses, no real LLM calls).
#
# IMPORTANT: do not leave a key set to empty (e.g. OPENAI_API_KEY=).
# An empty value is actively placed into os.environ by dotenv and can
# mask the yaml fallback in some configurations. Either set a real
# key or leave the line commented out.
# OPENAI_API_KEY=your-openai-key-here
# ANTHROPIC_API_KEY=your-anthropic-key-here
# OPENROUTER_API_KEY=your-openrouter-key-here

# Default model for background intelligence (extraction, draft, review)
OPENAI_MODEL=gpt-4o-mini

# Generic OpenAI-compatible provider (Ollama, LM Studio, vLLM, Together, etc.)
# Set the API URL to use a local or cheap model instead of OpenAI/Anthropic.
# API key is optional — local servers like Ollama don't require one.
# Then set background_intelligence.provider to "generic" in providers.yaml.
# SMRITI_GENERIC_API_URL=http://localhost:11434/v1
# SMRITI_GENERIC_MODEL=llama3.1:8b
# SMRITI_GENERIC_API_KEY=

# App
DEBUG=false
