mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-18 14:52:04 +00:00
fix(agent): probe localhost via IPv4 for LM Studio detection
Remaining hunk of the PR-branch fixup commit: the LM Studio first-probe
assertion now expects the IPv4-resolved URL (the code half — applying
the rewrite to `normalized` before deriving lmstudio_url — was folded
into the previous cherry-pick's conflict resolution).
(cherry picked from commit 7d324b0e47)
This commit is contained in:
parent
91ece5c2fc
commit
9a18a2de12
1 changed files with 1 additions and 1 deletions
|
|
@ -504,7 +504,7 @@ class TestDetectLocalServerTypeAuth:
|
|||
result = detect_local_server_type("http://localhost:1234/api/v1")
|
||||
|
||||
assert result == "lm-studio"
|
||||
assert client_mock.get.call_args_list[0].args[0] == "http://localhost:1234/api/v1/models"
|
||||
assert client_mock.get.call_args_list[0].args[0] == "http://127.0.0.1:1234/api/v1/models"
|
||||
|
||||
|
||||
class TestDetectLocalServerTypeLocalhostIPv4:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue