mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
test(providers): cover query path slash identity
This commit is contained in:
parent
fcae6fb9b8
commit
2507af2194
1 changed files with 21 additions and 0 deletions
|
|
@ -452,6 +452,27 @@ def test_direct_start_drops_context_when_empty_query_delimiter_changes():
|
|||
assert agent.context_compressor.config_context_length is None
|
||||
|
||||
|
||||
def test_direct_start_drops_context_when_query_path_slash_changes():
|
||||
"""A path slash before a query remains part of the effective SDK route."""
|
||||
cfg = {
|
||||
"model": {
|
||||
"default": "shared-model",
|
||||
"provider": "custom",
|
||||
"base_url": "https://example.com/v1/?tenant=large",
|
||||
"context_length": 1_048_576,
|
||||
}
|
||||
}
|
||||
|
||||
agent = _make_direct_start_agent(
|
||||
cfg,
|
||||
model="shared-model",
|
||||
provider="custom",
|
||||
base_url="https://example.com/v1?tenant=large",
|
||||
)
|
||||
|
||||
assert agent.context_compressor.config_context_length is None
|
||||
|
||||
|
||||
def test_direct_start_drops_context_when_active_query_changes():
|
||||
"""Query parameters remain part of the effective route identity."""
|
||||
cfg = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue