1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Example configuration for Lethe with proxy enabled
# Copy this to config.toml and adjust settings as needed
[]
= "0.0.0.0"
= 3000
= "*"
[]
# Set DATABASE_URL environment variable instead
# url = "postgresql://user:password@localhost/lethe"
# Proxy configuration - enable transparent reverse proxy
[]
= true
# OpenAI provider configuration
[]
= "https://api.openai.com"
# Anthropic provider configuration
[]
= "https://api.anthropic.com"
# Authentication mode: "passthrough" or "inject"
[]
= "passthrough" # Use "inject" to inject API keys automatically
# API keys for inject mode (set via environment variables)
[]
# openai_api_key = "${OPENAI_API_KEY}" # Set OPENAI_API_KEY env var
# anthropic_api_key = "${ANTHROPIC_API_KEY}" # Set ANTHROPIC_API_KEY env var
# Request rewriting configuration
[]
= true
= 2_000_000
= "You are a helpful AI assistant designed to provide accurate and helpful information."
# Security configuration
[]
= ["openai", "anthropic"]
= 10_000_000
# Proxy timeout configuration
[]
= 5000
= 30000