-
Notifications
You must be signed in to change notification settings - Fork 216
Expand file tree
/
Copy path.env.example
More file actions
21 lines (18 loc) · 993 Bytes
/
.env.example
File metadata and controls
21 lines (18 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Required settings
GEMINI_API_KEY="YOUR_GEMINI_API_KEY"
WASENDER_API_TOKEN="YOUR_WASENDER_API_TOKEN"
# Optional settings
WEBHOOK_SECRET="YOUR_WEBHOOK_SECRET" # For additional webhook verification security
GEMINI_MODEL="gemini-2.0-flash" # Or another model like "gemini-1.5-pro"
CONVERSATIONS_DIR="conversations" # Directory to store conversation histories
PERSONA_FILE_PATH="persona.json" # Path to your persona configuration file
# Performance settings
MAX_RETRIES=3 # Maximum number of retry attempts for WaSenderAPI calls
MESSAGE_CHUNK_MAX_LINES=3 # Max lines per WhatsApp message
MESSAGE_CHUNK_MAX_CHARS=100 # Max characters per line in WhatsApp messages
MESSAGE_DELAY_MIN=0.55 # Minimum delay between sequential messages (seconds)
MESSAGE_DELAY_MAX=1.5 # Maximum delay between sequential messages (seconds)
# Server settings
PORT=5001 # HTTP server port
FLASK_DEBUG=False # Set to True in development only
# Optional: LOG_LEVEL=INFO # DEBUG, INFO, WARNING, ERROR, CRITICAL