mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-21 16:18:55 +00:00
test(providers): expect conversation tags in Nous summaries
Update max-iteration summary assertions to include the agent session ID now attached to Nous Portal requests.
This commit is contained in:
parent
c98de70c2b
commit
156ea4ad89
1 changed files with 6 additions and 2 deletions
|
|
@ -3973,7 +3973,9 @@ class TestHandleMaxIterations:
|
|||
kwargs = agent.client.chat.completions.create.call_args.kwargs
|
||||
from agent.portal_tags import nous_portal_tags
|
||||
|
||||
assert kwargs["extra_body"]["tags"] == nous_portal_tags()
|
||||
assert kwargs["extra_body"]["tags"] == nous_portal_tags(
|
||||
session_id=agent.session_id
|
||||
)
|
||||
assert kwargs["extra_body"]["provider"] == {
|
||||
"only": ["deepseek"],
|
||||
"ignore": ["deepinfra"],
|
||||
|
|
@ -3995,7 +3997,9 @@ class TestHandleMaxIterations:
|
|||
kwargs = agent.client.chat.completions.create.call_args.kwargs
|
||||
from agent.portal_tags import nous_portal_tags
|
||||
|
||||
assert kwargs["extra_body"] == {"tags": nous_portal_tags()}
|
||||
assert kwargs["extra_body"] == {
|
||||
"tags": nous_portal_tags(session_id=agent.session_id)
|
||||
}
|
||||
|
||||
def test_summary_drops_invalid_provider_sort(self, agent):
|
||||
agent.base_url = "https://openrouter.ai/api/v1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue