Skip to content

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

@ncoghlan

Description

@ncoghlan

The SDK currently defaults to attempting to connect to the LM Studio app instance on port 1234 (the default HTTP REST API server port, which also supports the websocket API the SDK uses).

Having that server instance running is optional, so if no user specified port is given, the SDK should instead be checking the "always on" API server ports defined in https://github.com/lmstudio-ai/lmstudio-js/blob/main/packages/lms-common/src/apiServerPorts.ts (the LM Studio app will start the API server on the local loopback interface using the first of those ports which is free).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions