Repository navigation
feat: add LM Studio local runtime support - #886
Merged
Merged
Conversation
57 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
http://localhost:1234/v1endpoint and exact local model discovery.Why
LM Studio exposes an OpenAI-compatible local server and
/v1/models, but Maka did not offer it as a persisted provider or discover its loaded local models. This completes the LM Studio slice of the provider expansion while keeping the registry as the single source of truth and preserving the default no-auth contract.Refs #860
Scope
This PR adds only LM Studio support. It does not add another provider, implement Phase 7, or introduce an LM Studio-specific runtime fork where the existing OpenAI-compatible seam applies.
Verification
npm run typecheck— passed across all workspaces.npm test— passed across all workspaces; Desktop passed 2409/2409 on the finalmainbaseline.npm run e2e -- --workers=1fromapps/desktop— passed 17/17 with the fake backend, including the no-auth LM Studio catalog/detail journey and currentColor mask contract.npm run check:stale— passed (dist is fresh).reviewersubagent review — passed with no P0–P3 findings after fixes and final rebase.Impact
Users can configure a local LM Studio server without credentials, discover loaded models from
/v1/models, and retain exact model IDs across Desktop, CLI, and headless/runtime paths. No migration is required; existing provider IDs and ordering remain stable, and no secrets are introduced.Reviewer notes
LM Studio SVG provenance:
lobehub/lobe-icons,@lobehub/[email protected], commite4302041fbb3039608d25f9f618bd462783b875e, pathpackages/static-svg/icons/lmstudio.svg, MIT, complete SHA-2564a575e8382b52ce742ac5d21d361a7d2a08cea7c12390ee1bbb755ef7d3cc25b. The sharedTHIRD_PARTY_LICENSES.txtcontains the single Lobe Icons license body and per-asset inventory for xAI, Ollama, and LM Studio.Ready for review
Verificationexplains why it is not applicable