Add LM Studio as a keyless local model provider. - #184
Open
sobiya-22 wants to merge 1 commit into
Open
Conversation
Mirrors the Ollama pattern so users can run open-weight models via LM Studio's OpenAI-compatible localhost API without cloud keys.
|
Support |
|
Nice work on this — and apologies, I opened #434 for the same feature before spotting this PR (should have searched first). Laying out the delta here so maintainers can pick a direction easily. #434 follows the same core pattern (keyless descriptor +
Validated #434 live against LM Studio: tool-calling round trips on two models incl. JIT load and a thinking model's Zero attachment to which PR lands — if maintainers prefer this one, everything above can be cherry-picked here and I'll close #434. |
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.
Fixes #122
Summary
Adds LM Studio as a first-class keyless local model provider, following the same pattern as Ollama.
lm_studioin the provider registry with default endpointhttp://localhost:1234/v1OpenAIProviderwith placeholder keylm-studioand configurablebase_urlGET /v1/models(no auth header)lm_studio:*entries in the model pickerLM Studio models are not added to
matrix.py— users load arbitrary GGUF models locally. Models can be discovered after Detect (when the local server is running) or added manually via the existing "Add another model…" field.Test plan
pytest tests/test_provider_router.py tests/test_provider_verify.py tests/test_settings.py tests/test_server.pylm_studio:<model>