File size: 2,067 Bytes
c2b7a7b
 
 
 
 
 
 
 
53def98
c2b7a7b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dfbf93
 
 
c2b7a7b
 
 
 
6dfbf93
0aec951
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Northwestern CS Kiosk API - Environment Configuration

# =============================================================================
# LLM Provider Configuration (choose one)
# =============================================================================

# Anthropic (Claude) - Recommended
ANTHROPIC_API_KEY="your-anthropic-api-key"
# ANTHROPIC_MODEL=claude-haiku-4-5

# OpenAI (GPT)
# OPENAI_API_KEY=your-openai-api-key
# OPENAI_MODEL=gpt-4.1-mini

# Google (Gemini)
# GEMINI_API_KEY=your-gemini-api-key
# GEMINI_MODEL=gemini-2.0-flash

# =============================================================================
# Kiosk Settings
# =============================================================================

# Default LLM provider (anthropic, openai, gemini)
KIOSK_LLM_PROVIDER=anthropic

# Server host and port
KIOSK_HOST=0.0.0.0
KIOSK_PORT=8000

# LLM timeout in seconds
KIOSK_LLM_TIMEOUT=60

# Max tokens per response (reinforces brevity; default 384 if unset)
KIOSK_LLM_MAX_TOKENS=384

# System prompt (required - defines the kiosk persona)
KIOSK_LLM_SYSTEM_PROMPT="You are a conversational receptionist for the Northwestern CS Kiosk whose responses are spoken aloud. Speak naturally and never include stage directions or annotations."

# Style guidelines (required - ensures speech-friendly responses)
KIOSK_LLM_STYLE="Be very brief. One or two sentences max. No long lists—summarize top 2-3 items only."

# =============================================================================
# Hugging Face Dataset Persistence (optional - for metrics/history across restarts)
# =============================================================================

# HF dataset repo for chat history (e.g. monish563/kiosk-api-metrics)
# KIOSK_HF_DATASET_REPO=monish563/kiosk-api-metrics

# HF token with write access to the dataset (use HF Secrets on Spaces)
# KIOSK_HF_TOKEN=your-hf-token

# Path within the dataset repo (default: chat_history)
# KIOSK_HF_DATASET_PATH=chat_history

# Sync interval in minutes (default: 10)
# KIOSK_HF_SYNC_INTERVAL_MINUTES=10