-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
36 lines (29 loc) · 985 Bytes
/
.env.example
File metadata and controls
36 lines (29 loc) · 985 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
# Vulnerable AI Chatbot Configuration
# Copy this file to .env and configure your settings
# === LLM Configuration ===
# Use OpenAI API? (true/false)
# Set to false to use fallback pattern-matching responses (no API key needed)
USE_OPENAI=false
# OpenAI API Key (get from https://platform.openai.com/api-keys)
# Only required if USE_OPENAI=true
OPENAI_API_KEY=sk-proj-your-api-key-here
# Model to use (if using OpenAI)
# Options: gpt-3.5-turbo, gpt-4, gpt-4-turbo, gpt-4o
MODEL_NAME=gpt-3.5-turbo
# === Server Configuration ===
# Port to run the application on
PORT=5000
# === Notes ===
#
# WITHOUT API KEY (FREE):
# - Set USE_OPENAI=false
# - Uses simple pattern matching for responses
# - Good for basic testing and demos
# - All vulnerabilities still demonstrable
#
# WITH API KEY (PAID):
# - Set USE_OPENAI=true
# - Provide your OPENAI_API_KEY
# - Uses real LLM (more realistic responses)
# - Better demonstrates prompt injection nuances
# - Costs ~$0.001-0.002 per request