We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7bf914 commit 963ab50Copy full SHA for 963ab50
src/lmstudio/sync_api.py
@@ -1637,9 +1637,9 @@ def get_default_client(api_host: str | None = None) -> Client:
1637
def _reset_default_client() -> None:
1638
# Allow the test suite to reset the client without
1639
# having to poke directly at the module's internals
1640
- global _default_client
+ global _default_api_host, _default_client
1641
previous_client = _default_client
1642
- _default_client = None
+ _default_api_host = _default_client = None
1643
if previous_client is not None:
1644
previous_client.close()
1645
0 commit comments