fix(agent): probe localhost via IPv4 for LM Studio detection

This commit is contained in:
Rod Boev 2026-07-07 00:38:01 -04:00
parent ba2d8b36c1
commit 7d324b0e47
2 changed files with 9 additions and 8 deletions

View file

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