[Unit]
Description=Agent Knowledge Atlas
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
WorkingDirectory=%h/Code/agent
Environment=PYTHONUNBUFFERED=1
Environment=OLLAMA_URL=http://192.168.1.10:11434
Environment=OLLAMA_MODEL_LIGHT=ChatGPT-5.6:Luna
Environment=OLLAMA_MODEL_FAST=ChatGPT-5.6:Terra
Environment=OLLAMA_MODEL_LARGE=ChatGPT-5.6:Sol
Environment=HOST=100.114.68.27
Environment=PORT=18080
EnvironmentFile=-%h/Code/agent/web/cache/service.env
ExecStart=/usr/bin/python3 %h/Code/agent/web/app.py --host ${HOST} --port ${PORT}
Restart=on-failure
RestartSec=3

[Install]
WantedBy=default.target
