forked from daveebbelaar/python-whatsapp-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.env
More file actions
40 lines (34 loc) · 2.37 KB
/
example.env
File metadata and controls
40 lines (34 loc) · 2.37 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
# WhatsApp Cloud API Configuration
# This token expires after 24 hours. You can get a new one from the your Meta App Dashboard > API Setup
# Or you can create an access token at the System User level from the Meta Business Settings: https://business.facebook.com/settings/system-users
ACCESS_TOKEN=""
APP_ID=""
APP_SECRET=""
RECIPIENT_WAID="" # Your WhatsApp number with country code (e.g., +31612345678)
VERSION="v22.0" # Meta Graph API version
PHONE_NUMBER_ID="" # Your WhatsApp Business Phone Number ID
# Webhook Verification Token (must match the one in Meta App Dashboard)
VERIFY_TOKEN=""
# ---------------------------------------------------------------------------
# Chat API Provider Configuration
# ---------------------------------------------------------------------------
# Determines which chat API service to use. Options: "OPENAI", "AZURE", "VLLM".
# Defaults to "OPENAI" if not set.
CHAT_API_PROVIDER="OPENAI"
# --- OpenAI Configuration (if CHAT_API_PROVIDER="OPENAI") ---
OPENAI_API_KEY="" # Required
OPENAI_MODEL_NAME="" # Required (e.g., gpt-3.5-turbo, gpt-4o-mini)
OPENAI_API_BASE="" # Optional: Use if you have a custom API endpoint or proxy
OPENAI_EMBEDDING_MODEL_NAME="text-embedding-3-small" # Optional: Defaults to text-embedding-3-small
# OPENAI_ASSISTANT_ID="" # Optional: If using OpenAI Assistants API features elsewhere in the application
# --- Azure OpenAI Configuration (if CHAT_API_PROVIDER="AZURE") ---
AZURE_OPENAI_ENDPOINT="" # Required (e.g., https://your-resource-name.openai.azure.com)
AZURE_OPENAI_API_KEY="" # Required
AZURE_OPENAI_DEPLOYMENT_NAME="" # Required (Name of your chat model deployment, e.g., gpt4-turbo)
AZURE_OPENAI_API_VERSION="2024-02-15-preview" # Optional: API version, defaults to 2024-02-15-preview
AZURE_OPENAI_EMBEDDING_DEPLOYMENT_NAME="" # Optional: Name of your embedding model deployment (defaults to chat deployment name if not set)
# --- Local vLLM Configuration (if CHAT_API_PROVIDER="VLLM") ---
VLLM_API_BASE="http://35.247.148.76:8000/v1/" # Required: Base URL of your vLLM server (OpenAI-compatible API endpoint)
VLLM_MODEL_NAME="" # Required: Model identifier used by your vLLM server
VLLM_API_KEY="" # Optional: API key if your vLLM server requires one (often not needed or can be a dummy value)
VLLM_EMBEDDING_MODEL_NAME="" # Optional: Model for embeddings, if different from chat model