diff --git a/src/lmstudio/sync_api.py b/src/lmstudio/sync_api.py index ba73958..5751d4b 100644 --- a/src/lmstudio/sync_api.py +++ b/src/lmstudio/sync_api.py @@ -1709,7 +1709,7 @@ def list_loaded_models( @sdk_public_api() def configure_default_client(api_host: str, api_token: str | None = None) -> None: """Set the server API host for the default global client (without creating the client).""" - global _default_api_host + global _default_api_host, _default_api_token if _default_client is not None: raise LMStudioClientError( "Default client is already created, cannot set its API host or token."