Semver rename: mortdecai:0.4.0, mortdecai:0.5.0

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-20 21:37:36 -04:00
parent adeda6dd84
commit af5cb4df2a
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -216,7 +216,7 @@ def _calc_marginal_cost(duration_seconds):
return marginal_watts, energy_wh, cost
def _track_request(tokens_in, tokens_out, duration_seconds, model="mortdecai-v4"):
def _track_request(tokens_in, tokens_out, duration_seconds, model="mortdecai:0.4.0"):
"""Track a completed inference request and record in ledger."""
marginal_watts, energy_wh, cost = _calc_marginal_cost(duration_seconds)
@@ -461,7 +461,7 @@ class GatewayHandler(BaseHTTPRequestHandler):
def _handle_model_update(self, body):
"""Download a new GGUF from a URL and reload the model.
Request: {"url": "https://mortdec.ai/dl/...", "name": "mortdecai-v5"}
Request: {"url": "https://mortdec.ai/dl/...", "name": "mortdecai:0.5.0"}
This is opt-in — the gateway operator must enable ALLOW_MODEL_UPDATES=true.
"""
if os.environ.get("ALLOW_MODEL_UPDATES", "false").lower() != "true":