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:
+2
-2
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user