# GoModel Configuration
# =====================
# Copy this file to .env and fill in the values you need.
# At least one provider key or base URL must be set — GoModel exits
# immediately on startup if no providers can be registered.

# ---- Image version ----
GOMODEL_VERSION=0.1.27

# ---- Network ----
# Host port that maps to the container's port 8080
GOMODEL_PORT_OVERRIDE=8080

# ---- Timezone ----
TZ=UTC

# ---- Security ----
# Set a strong secret to protect all API endpoints.
# Without this key the gateway runs in UNSAFE (open) mode.
# Clients must send: Authorization: Bearer <GOMODEL_MASTER_KEY>
# GOMODEL_MASTER_KEY=change-me-before-exposing-to-network

# ---- Storage ----
# Backend for audit logs and usage data.
# Options: sqlite (default), postgresql, mongodb
GOMODEL_STORAGE_TYPE=sqlite
# SQLite database file path inside the container (persisted via named volume)
# SQLITE_PATH=/app/data/gomodel.db

# ---- Audit logging ----
# Log all requests and responses to the configured storage backend.
# WARNING: May capture PII and API key values present in prompts.
GOMODEL_LOGGING_ENABLED=false

# ---- Resource limits ----
GOMODEL_CPU_LIMIT=1.00
GOMODEL_MEMORY_LIMIT=512M
GOMODEL_CPU_RESERVATION=0.25
GOMODEL_MEMORY_RESERVATION=128M

# ===========================================================================
# Provider API Keys
# Set the credentials for every provider you want to route traffic through.
# Providers without a key (or base URL) are simply not registered.
# ===========================================================================

# OpenAI
# OPENAI_API_KEY=sk-...
# OPENAI_BASE_URL=https://api.openai.com/v1

# Anthropic
# ANTHROPIC_API_KEY=sk-ant-...

# Google Gemini
# GEMINI_API_KEY=...

# Groq
# GROQ_API_KEY=gsk_...

# xAI (Grok)
# XAI_API_KEY=...

# DeepSeek
# DEEPSEEK_API_KEY=...

# OpenRouter
# OPENROUTER_API_KEY=sk-or-...

# Z.ai
# ZAI_API_KEY=...

# Azure OpenAI
# AZURE_API_KEY=...
# AZURE_BASE_URL=https://your-resource.openai.azure.com/openai/deployments/your-deployment
# AZURE_API_VERSION=2024-10-21

# Oracle
# ORACLE_API_KEY=...
# ORACLE_BASE_URL=https://inference.generativeai.us-chicago-1.oci.oraclecloud.com/20231130/actions/v1
# ORACLE_MODELS=openai.gpt-oss-120b,xai.grok-3

# Ollama (local inference server — no API key needed for default setup)
# OLLAMA_BASE_URL=http://host.docker.internal:11434/v1

# vLLM (OpenAI-compatible server — API key optional)
# VLLM_BASE_URL=http://host.docker.internal:8000/v1
# VLLM_API_KEY=token-abc123
