File size: 1,359 Bytes
b309c22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3789a0e
b309c22
 
 
 
 
770544d
b309c22
 
770544d
 
 
b309c22
 
 
770544d
 
b309c22
 
 
 
 
 
 
 
 
 
 
 
 
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
57
58
59
60
# API Configuration
# Get your OpenAI API key from: https://platform.openai.com/api-keys
OPENAI_API_KEY=your_openai_key_here

# Get your Anthropic API key from: https://console.anthropic.com/
ANTHROPIC_API_KEY=your_anthropic_key_here

# Default AI provider (openai or anthropic)
DEFAULT_PROVIDER=openai

# Application Settings
MAX_SUGGESTIONS=5
DEBOUNCE_DELAY=300
CACHE_TTL=3600
MAX_INPUT_LENGTH=1000

# Cache Configuration
CACHE_MAX_SIZE=1000
CACHE_ENABLED=true

# Logging Configuration
LOG_LEVEL=INFO
LOG_FORMAT=%(asctime)s - %(name)s - %(levelname)s - %(message)s

# API Rate Limiting
RATE_LIMIT_REQUESTS_PER_MINUTE=60
RATE_LIMIT_ENABLED=true

# Model Configuration
OPENAI_MODEL=gpt-4o-mini
ANTHROPIC_MODEL=claude-3-haiku-20240307

# Temperature settings for different contexts (0.0 to 2.0)
TEMPERATURE_EMAIL=0.6
TEMPERATURE_CREATIVE=0.8
TEMPERATURE_LINKEDIN=0.7

# Default token limits for different contexts
DEFAULT_TOKENS_EMAIL=250
DEFAULT_TOKENS_CREATIVE=500
DEFAULT_TOKENS_LINKEDIN=500

# UI Configuration
UI_THEME=soft
UI_TITLE=πŸš€ LinkedIn Smart Auto-Complete
UI_DESCRIPTION=Intelligent LinkedIn text completion powered by AI

# Server Configuration
SERVER_HOST=0.0.0.0
SERVER_PORT=7860
SERVER_SHARE=false

# Security Settings
ENABLE_INPUT_SANITIZATION=true
MAX_CONCURRENT_REQUESTS=10

# Development Settings
DEBUG_MODE=false
ENABLE_ANALYTICS=true