[PR #957] [MERGED] Patch LMStudio Inference server bug integration #3540

Closed
opened 2026-02-22 18:33:59 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/957
Author: @timothycarambat
Created: 3/22/2024
Status: Merged
Merged: 3/22/2024
Merged by: @timothycarambat

Base: masterHead: 952-lmstudio-patch


📝 Commits (1)

  • ba6f074 Patch LMStudio Inference server bug integration

📊 Changes

7 files changed (+120 additions, -3 deletions)

View changed files

📝 docker/.env.example (+1 -0)
📝 frontend/src/components/LLMSelection/LMStudioOptions/index.jsx (+80 -0)
📝 server/.env.example (+1 -0)
📝 server/models/systemSettings.js (+1 -0)
📝 server/utils/AiProviders/lmStudio/index.js (+8 -3)
📝 server/utils/helpers/customModels.js (+25 -0)
📝 server/utils/helpers/updateENV.js (+4 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #952

What is in this change?

The latest release of LMStudio 0.2.17 introduced multi-model chatting. This version has a bug within it that breaks all integrations that rely on their inference server.

The current workaround is to ping /models and get the values there and allow them to be set. If running the single-model inference server the model is always called Loaded from Chat UI and returns a more reasonable name when running the inference servers as a multi-model chat.

For now, all we can do it try to get the correct value from /models and allow the user to set whatever is returned from there. This does not impact LMStudio integrations running <0.2.17 and will work for any patches thereafter.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/957 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 3/22/2024 **Status:** ✅ Merged **Merged:** 3/22/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `952-lmstudio-patch` --- ### 📝 Commits (1) - [`ba6f074`](https://github.com/Mintplex-Labs/anything-llm/commit/ba6f0741e751a2f0debe92256da5070c474e9254) Patch LMStudio Inference server bug integration ### 📊 Changes **7 files changed** (+120 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+1 -0) 📝 `frontend/src/components/LLMSelection/LMStudioOptions/index.jsx` (+80 -0) 📝 `server/.env.example` (+1 -0) 📝 `server/models/systemSettings.js` (+1 -0) 📝 `server/utils/AiProviders/lmStudio/index.js` (+8 -3) 📝 `server/utils/helpers/customModels.js` (+25 -0) 📝 `server/utils/helpers/updateENV.js` (+4 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [x] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #952 ### What is in this change? The latest release of LMStudio 0.2.17 introduced multi-model chatting. This version has a bug within it that breaks all integrations that rely on their inference server. The current workaround is to ping `/models` and get the values there and allow them to be set. If running the single-model inference server the model is always called `Loaded from Chat UI` and returns a more reasonable name when running the inference servers as a multi-model chat. For now, all we can do it try to get the correct value from `/models` and allow the user to set whatever is returned from there. This does not impact LMStudio integrations running <0.2.17 and will work for any patches thereafter. ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:33:59 -05:00
yindo closed this issue 2026-02-22 18:33:59 -05:00
yindo changed title from [PR #957] Patch LMStudio Inference server bug integration to [PR #957] [MERGED] Patch LMStudio Inference server bug integration 2026-06-05 15:13:56 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3540