-
Notifications
You must be signed in to change notification settings - Fork 3.1k
feat: bypass canonical model filtering for LM Studio #8043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,17 @@ | |
| "display_name": "LM Studio", | ||
| "description": "Run local models with LM Studio", | ||
| "api_key_env": "", | ||
| "base_url": "http://localhost:1234/v1/chat/completions", | ||
| "base_url": "${LMSTUDIO_HOST}/chat/completions", | ||
| "env_vars": [ | ||
| { | ||
| "name": "LMSTUDIO_HOST", | ||
| "required": false, | ||
| "secret": false, | ||
| "description": "LM Studio server URL (e.g. http://localhost:1234/v1)", | ||
| "default": "http://localhost:1234/v1" | ||
| } | ||
|
Comment on lines
+8
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Adding Useful? React with 👍 / 👎. |
||
| ], | ||
| "dynamic_models": true, | ||
| "models": [], | ||
| "supports_streaming": true, | ||
| "requires_auth": false | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returning the raw
/modelslist here feeds arbitrary LM Studio IDs intoSwitchModelModal, whosefindPreferredModel()helper falls back tovalidModels[0]and is invoked automatically whenever a provider is chosen with no current model (SwitchModelModal.tsx:62-80,390-400). Because LM Studio model names often do not match the hard-coded preference patterns, opening the modal or switching to LM Studio can silently preselect the alphabetically first model—including embedding or non-tool-capable entries—and save a broken configuration unless the user notices and corrects it manually.Useful? React with 👍 / 👎.