mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix: fake models
This commit is contained in:
parent
77b97b810a
commit
ebe3270430
6 changed files with 40 additions and 38 deletions
|
|
@ -155,7 +155,7 @@ def test_config_set_model_uses_live_switch_path(monkeypatch):
|
|||
|
||||
def _fake_apply(sid, session, raw):
|
||||
seen["args"] = (sid, session["session_key"], raw)
|
||||
return "new/model"
|
||||
return {"value": "new/model", "warning": "catalog unreachable"}
|
||||
|
||||
monkeypatch.setattr(server, "_apply_model_switch", _fake_apply)
|
||||
resp = server.handle_request(
|
||||
|
|
@ -163,6 +163,7 @@ def test_config_set_model_uses_live_switch_path(monkeypatch):
|
|||
)
|
||||
|
||||
assert resp["result"]["value"] == "new/model"
|
||||
assert resp["result"]["warning"] == "catalog unreachable"
|
||||
assert seen["args"] == ("sid", "session-key", "new/model")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue