-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
executable file
·56 lines (45 loc) · 1.19 KB
/
Copy path.env.example
File metadata and controls
executable file
·56 lines (45 loc) · 1.19 KB
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
49
50
51
52
53
54
55
56
# GARNET API Configuration
# Copy this file to .env and adjust values as needed
# Environment (development, production)
ENV=development
DEBUG=true
# Server
HOST=localhost
PORT=8001
# CORS - Comma-separated list of allowed origins
# Development default allows frontend dev server
ALLOWED_ORIGINS=http://localhost:5173,http://localhost:8001
# File Upload Limits
MAX_FILE_SIZE_MB=50
ALLOWED_IMAGE_EXTENSIONS=.jpg,.jpeg,.png,.webp,.bmp,.tiff
# Cache Configuration
RESULTS_CACHE_MAX_SIZE=100
RESULTS_CACHE_TTL=3600
MODEL_CACHE_MAX_SIZE=10
# Model Defaults
DEFAULT_CONF_THRESHOLD=0.8
DEFAULT_IMAGE_SIZE=640
DEFAULT_OVERLAP_RATIO=0.2
# Gemini / OpenRouter
# Required for:
# - detection runs using selected_model=gemini
# - pipeline OCR runs using ocr_route=gemini
OPENROUTER_API_KEY=
OPENROUTER_MODEL=google/gemini-3-flash-preview
OPENROUTER_BASE_URL=https://openrouter.ai/api/v1
OPENROUTER_TEMPERATURE=0.7
# OCR Configuration
OCR_CACHE_ENABLED=true
OCR_LANGUAGES=en
OCR_GPU=true
# Logging
LOG_LEVEL=INFO
LOG_FILE=garnet.log
LOG_ROTATION=10 MB
# Security (Optional)
API_KEY_ENABLED=false
API_KEY=your-secret-api-key-here
# Rate Limiting (Optional)
RATE_LIMIT_ENABLED=false
RATE_LIMIT_REQUESTS=100
RATE_LIMIT_WINDOW=60