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:
Jai Suphavadeeprasit 2026-07-15 16:04:07 -04:00 committed by Teknium
parent 479d1aff6c
commit c98de70c2b

View file

@ -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(