mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-20 15:33:54 +00:00
test(providers): update Nous parity test for conversation tag
The end-to-end _build_api_kwargs parity test asserted the Nous Portal tags exactly equal the base two-tag list. With the per-session conversation tag, a real agent (which has a session_id) now emits a third `conversation=<session_id>` tag. Assert against nous_portal_tags(session_id=agent.session_id) so the check stays exact.
This commit is contained in:
parent
479d1aff6c
commit
c98de70c2b
1 changed files with 1 additions and 1 deletions
|
|
@ -429,7 +429,7 @@ class TestBuildApiKwargsNousPortal:
|
|||
messages = [{"role": "user", "content": "hi"}]
|
||||
kwargs = agent._build_api_kwargs(messages)
|
||||
extra = kwargs.get("extra_body", {})
|
||||
assert extra.get("tags") == nous_portal_tags()
|
||||
assert extra.get("tags") == nous_portal_tags(session_id=agent.session_id)
|
||||
|
||||
def test_uses_chat_completions_format(self, monkeypatch):
|
||||
agent = _make_agent(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue