Skip to content

Conversation

@ncoghlan
Copy link
Collaborator

  • Default local API server ports are now extracted from lmstudio-js
  • The singular DEFAULT_API_HOST is no longer defined
  • New public APIs to check API host validity
  • New public APIs to scan for a valid local API host on default ports
  • Omitting the API host now results in a dynamic scan for a valid local API host when enter the client instance context
  • Attempting to access the client api_host field when it is still to be determined now raises an exception
  • Synchronous session API is now also marked as private

Closes #141

* Default local API server ports are now extracted from lmstudio-js
* The singular DEFAULT_API_HOST is no longer defined
* New public APIs to check API host validity
* New public APIs to scan for a valid local API host on default ports
* Omitting the API host now results in a dynamic scan for a valid
  local API host when enter the client instance context
* Attempting to access the client api_host field when it is
  still to be determined now raises an exception
* Synchronous session API is now also marked as private

Closes #141
@github-actions github-actions bot added the CLA signed Indicates that all contributors have signed label Aug 12, 2025
@ncoghlan ncoghlan merged commit 1a08e81 into main Aug 12, 2025
10 checks passed
@ncoghlan ncoghlan deleted the default-to-always-on-api-ports branch August 12, 2025 16:19
@github-actions github-actions bot locked and limited conversation to collaborators Aug 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA signed Indicates that all contributors have signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python SDK should work even when the HTTP (REST) API is disabled

2 participants