-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
45 lines (35 loc) · 803 Bytes
/
.env.example
File metadata and controls
45 lines (35 loc) · 803 Bytes
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
# Ollama Configuration
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=llama3.2
# API Configuration
API_V1_STR=/api/v1
PROJECT_NAME=AI Prescription Reader
# Environment
ENVIRONMENT=development
DEBUG=True
# Server Configuration
HOST=0.0.0.0
PORT=8000
# Logging
LOG_LEVEL=INFO
LOG_FILE=app.log
# Security
SECRET_KEY=your-secret-key-here
ALLOWED_HOSTS=localhost,127.0.0.1
# File Upload
MAX_FILE_SIZE=10485760 # 10MB
ALLOWED_EXTENSIONS=jpg,jpeg,png,pdf
# OCR Configuration
TESSERACT_CMD=/usr/bin/tesseract # Update path as needed
OCR_LANGUAGE=eng
OCR_CONFIG=--oem 3 --psm 6
# AI Model Configuration
AI_TEMPERATURE=0.1
AI_MAX_TOKENS=1000
AI_TIMEOUT=30
# Cache Configuration
CACHE_TTL=300 # 5 minutes
ENABLE_CACHE=True
# Rate Limiting
RATE_LIMIT_REQUESTS=100
RATE_LIMIT_WINDOW=3600 # 1 hour