fix: hide stale and effort-preset models without losing checks
Build and deploy / build-deploy (push) Waiting to run

This commit is contained in:
2026-10-27 09:44:23 +00:00
parent 3ac835ab7e
commit 631b44666f
4 changed files with 93 additions and 13 deletions
+3
View File
@@ -125,6 +125,9 @@ def _reset_omni(omni_server):
"""Изолировать тесты: состояние мока не должно протекать между тестами."""
with omni_server.lock:
omni_server.state["per_model"] = {}
omni_server.state["models"] = {"data": [
{"id": "zai/test-model-a"}, {"id": "agy/test-model-b"},
]}
omni_server.state["global_delay"] = 0.0
omni_server.state["completions"] = {"status": 200, "usage": None, "content": "4"}
omni_server.requests.clear()