From 583c563daa123ed5111815d8aa8f8417b85415ca Mon Sep 17 00:00:00 2001 From: Seth Freiberg Date: Fri, 20 Mar 2026 19:50:54 -0400 Subject: [PATCH] Fix startup print for new config model Co-Authored-By: Claude Opus 4.6 (1M context) --- gateway.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gateway.py b/gateway.py index f60d5e0..18f2899 100644 --- a/gateway.py +++ b/gateway.py @@ -458,12 +458,14 @@ Config: GET /config | Update: POST /config | Stats: GET /stats (auth required) def main(): _load_stats() + c = COST_CONFIG print(f"Mortdecai Gateway starting") print(f" Ollama: {OLLAMA_URL}") print(f" Listen: 0.0.0.0:{LISTEN_PORT}") - print(f" TDP: {GPU_TDP_WATTS}W + {SYSTEM_OVERHEAD_WATTS}W overhead") - print(f" Rate: ${ELECTRICITY_RATE}/kWh") - print(f" Cap: ${SPENDING_CAP}") + print(f" GPU: {c['gpu_idle_watts']}W idle → {c['gpu_load_watts']}W load") + print(f" System: {c['system_idle_watts']}W idle → {c['system_inference_watts']}W load") + print(f" Rate: ${c['electricity_rate']}/kWh | Mode: {c['billing_mode']}") + print(f" Cap: ${c['spending_cap']}") print(f" Dashboard: http://localhost:{LISTEN_PORT}/dashboard") # Save stats periodically