-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy path.example.env
More file actions
35 lines (24 loc) · 1.22 KB
/
.example.env
File metadata and controls
35 lines (24 loc) · 1.22 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
# {"key": {"name": "User name", "can_change_model": boolean}}
API_KEYS={"sugarai2024": {"name": "Admin Key", "can_change_model": true}, "user_key_1": {"name": "User 1", "can_change_model": false}, "user_key_2": {"name": "User 2", "can_change_model": false}}
MODEL_CHANGE_PASSWORD=sugarai2024
DEFAULT_MODEL=Qwen/Qwen2-1.5B-Instruct
#For local development
DEV_MODE=1 #0 for default model
DEV_MODEL_NAME=HuggingFaceTB/SmolLM-135M-Instruct
PROD_MODEL_NAME=Qwen/Qwen2-1.5B-Instruct
DOC_PATHS=["./docs/Pygame Documentation.pdf", "./docs/Python GTK+3 Documentation.pdf", "./docs/Sugar Toolkit Documentation.pdf"]
PORT=8000
MAX_DAILY_REQUESTS=100
# OAuth Configuration
# to get github credentials go to settings -> developer settings -> OAuth Apps -> create new OAuth app
# to get google credentials go to cloud console -> APIs & Services -> Credentials -> create new OAuth client ID
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
GOOGLE_CLIENT_ID=your_google_clientid
GOOGLE_CLIENT_SECRET=client_secret
OAUTH_REDIRECT_URI=http://localhost:8000/auth/callback
SESSION_SECRET_KEY=your_secret_key
# Webhook based CI/CD
WEBHOOK_SECRET=your_webhook_secret
REPO_PATH_LOCALLY=/path/to/sugar-ai
GIT_PATH=/usr/bin/git