Skip to content

Commit 963ab50

Browse files
committed
Also reset the default API host
1 parent b7bf914 commit 963ab50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lmstudio/sync_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,9 +1637,9 @@ def get_default_client(api_host: str | None = None) -> Client:
16371637
def _reset_default_client() -> None:
16381638
# Allow the test suite to reset the client without
16391639
# having to poke directly at the module's internals
1640-
global _default_client
1640+
global _default_api_host, _default_client
16411641
previous_client = _default_client
1642-
_default_client = None
1642+
_default_api_host = _default_client = None
16431643
if previous_client is not None:
16441644
previous_client.close()
16451645

0 commit comments

Comments
 (0)