fix: hide stale and effort-preset models without losing checks
Build and deploy / build-deploy (push) Waiting to run
Build and deploy / build-deploy (push) Waiting to run
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user