File size: 1,167 Bytes
383d492
 
ecfd85f
383d492
fbaf08f
 
51354f3
8fee865
 
 
c66fbfe
51354f3
 
fbaf08f
 
51354f3
fbaf08f
51354f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import os

# Hugging Face Token – not required for public models like Mistral
HF_TOKEN = os.getenv("HF_TOKEN")
if HF_TOKEN == "":
    HF_TOKEN = None  # Normalize empty string to None

# ✅ Public model — No token required
MODEL_ID = os.getenv("MODEL_ID", "Qwen/Qwen3-1.7B")



# Paths and Settings
TEMP_DIR = os.getenv("TEMP_DIR", "/tmp")  # Temporary storage (screenshots, temp files, etc.)
ENABLE_EXECUTION = os.getenv("ENABLE_EXECUTION", "true").lower() == "true"  # Allow shell execution

# OS Commands (can be adjusted per OS)
OS_COMMANDS = {
    "open": {
        "chrome": "google-chrome",
        "firefox": "firefox",
        "notepad": "notepad",
        "calculator": "gnome-calculator",
        "terminal": "gnome-terminal",
        "vscode": "code"
    },
    "close": {
        "chrome": "pkill chrome",
        "firefox": "pkill firefox",
        "notepad": "pkill notepad",
        "calculator": "pkill gnome-calculator",
        "vscode": "pkill code"
    },
    "screenshot": {
        "default": "import -window root screenshot.png"
    },
    "shutdown": "shutdown now",
    "restart": "reboot",
    "lock": "gnome-screensaver-command -l"
}