Add opt-in model update endpoint + API key support

Gateway: POST /admin/update-model downloads new GGUF and reloads.
Disabled by default — requires ALLOW_MODEL_UPDATES=true in .env.
Matt controls whether remote model updates are allowed.

Self-play: --api-key flag for authenticated gateway connections.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-20 19:39:50 -04:00
parent f470f052aa
commit 0b37d7de79
2 changed files with 43 additions and 0 deletions
+1
View File
@@ -4,3 +4,4 @@ GPU_TDP_WATTS=54
SYSTEM_OVERHEAD_WATTS=30
ELECTRICITY_RATE=0.15
SPENDING_CAP=10.00
ALLOW_MODEL_UPDATES=false