Files
smart-support/.env.example
Yaojia Wang f0699436c5 refactor: engineering improvements -- API versioning, structured logging, Alembic, error standardization, test coverage
- API versioning: all REST endpoints prefixed with /api/v1/
- Structured logging: replaced stdlib logging with structlog (console/JSON modes)
- Alembic migrations: versioned DB schema with initial migration
- Error standardization: global exception handlers for consistent envelope format
- Interrupt cleanup: asyncio background task for expired interrupt removal
- Integration tests: +30 tests (analytics, replay, openapi, error, session APIs)
- Frontend tests: +57 tests (all components, pages, useWebSocket hook)
- Backend: 557 tests, 89.75% coverage | Frontend: 80 tests, 16 test files
2026-04-06 23:19:29 +02:00

36 lines
1009 B
Plaintext

# Smart Support -- Docker Compose environment variables
# Copy to .env and fill in your values
# PostgreSQL password (used by both postgres and backend services)
POSTGRES_PASSWORD=dev_password
# LLM provider: anthropic | openai | azure_openai | google
LLM_PROVIDER=anthropic
LLM_MODEL=claude-sonnet-4-6
# API keys (provide the one matching LLM_PROVIDER)
ANTHROPIC_API_KEY=
OPENAI_API_KEY=
GOOGLE_API_KEY=
# Azure OpenAI (required when LLM_PROVIDER=azure_openai)
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_DEPLOYMENT=
AZURE_OPENAI_API_VERSION=2024-12-01-preview
# Optional: webhook URL for escalation notifications
WEBHOOK_URL=
# Session and interrupt TTL in minutes
SESSION_TTL_MINUTES=30
INTERRUPT_TTL_MINUTES=30
# Optional: API key for admin endpoints (analytics, replay, openapi, websocket)
# Leave empty to disable authentication (dev mode)
ADMIN_API_KEY=
# Optional: load a named agent template instead of agents.yaml
# Available templates: ecommerce, saas, generic
TEMPLATE_NAME=