[PR #1756] [MERGED] [FEAT] Auto detection for Ollama and LMStudio #3768

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/1756
Author: @shatfield4
Created: 6/24/2024
Status: Merged
Merged: 6/25/2024
Merged by: @timothycarambat

Base: masterHead: improve-ollama-lmstudio-setup


📝 Commits (10+)

  • b685ce1 add ollama automatic url detection in llm and embedder prefrences
  • 90fc4cb implement auto detection for lmstudio llm and embedder/improve performance of checking common urls
  • 59d25d7 fix modal not clearing
  • ecb04b8 fix lmstudio url check
  • d909615 improve ux for ollama llm provider option
  • 911bc78 improve ux for lm studio llm provider option
  • d49b28c improve ux for ollama embedder option
  • 7f4ae26 improve ux for lmstudio embedder option
  • 1792fac ux improvement lmstudio embedder options
  • 4c779cd refactor implementation to hook and use native timeout

📊 Changes

7 files changed (+596 additions, -160 deletions)

View changed files

📝 frontend/src/components/EmbeddingSelection/LMStudioOptions/index.jsx (+117 -37)
📝 frontend/src/components/EmbeddingSelection/OllamaOptions/index.jsx (+117 -38)
📝 frontend/src/components/LLMSelection/LMStudioOptions/index.jsx (+119 -43)
📝 frontend/src/components/LLMSelection/OllamaLLMOptions/index.jsx (+117 -41)
frontend/src/hooks/useProviderEndpointAutoDiscovery.js (+99 -0)
📝 frontend/src/models/system.js (+14 -1)
📝 frontend/src/utils/constants.js (+13 -0)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #1755

What is in this change?

  • Implement auto fetching to check common URLs used by Ollama and LMStudio to help with setup of these providers

Additional Information

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/1756 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 6/24/2024 **Status:** ✅ Merged **Merged:** 6/25/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `improve-ollama-lmstudio-setup` --- ### 📝 Commits (10+) - [`b685ce1`](https://github.com/Mintplex-Labs/anything-llm/commit/b685ce16aff2e62225631ffc6c23cfd26e3a1f6b) add ollama automatic url detection in llm and embedder prefrences - [`90fc4cb`](https://github.com/Mintplex-Labs/anything-llm/commit/90fc4cbe3b05a83e16dc8320dedcc988beabca33) implement auto detection for lmstudio llm and embedder/improve performance of checking common urls - [`59d25d7`](https://github.com/Mintplex-Labs/anything-llm/commit/59d25d7e66212ff7a9b4c3eed52cf25761ff2023) fix modal not clearing - [`ecb04b8`](https://github.com/Mintplex-Labs/anything-llm/commit/ecb04b8e6b2c6d1e85a5871eadde403f96e5f290) fix lmstudio url check - [`d909615`](https://github.com/Mintplex-Labs/anything-llm/commit/d90961598ea7a099c4478f1384eec00fd0c120d8) improve ux for ollama llm provider option - [`911bc78`](https://github.com/Mintplex-Labs/anything-llm/commit/911bc78ac6798d007fc6fc6c1b156b9d335749fb) improve ux for lm studio llm provider option - [`d49b28c`](https://github.com/Mintplex-Labs/anything-llm/commit/d49b28cefff1859ce3f0d0892ad86db8d4ed6642) improve ux for ollama embedder option - [`7f4ae26`](https://github.com/Mintplex-Labs/anything-llm/commit/7f4ae26bb7454403bd86f36e6d780d968c978930) improve ux for lmstudio embedder option - [`1792fac`](https://github.com/Mintplex-Labs/anything-llm/commit/1792face9ed01e7e79362d5b0c24f58ab541e2c0) ux improvement lmstudio embedder options - [`4c779cd`](https://github.com/Mintplex-Labs/anything-llm/commit/4c779cd9277ef55724468f6aee3d2b4e9fa4d8df) refactor implementation to hook and use native timeout ### 📊 Changes **7 files changed** (+596 additions, -160 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/EmbeddingSelection/LMStudioOptions/index.jsx` (+117 -37) 📝 `frontend/src/components/EmbeddingSelection/OllamaOptions/index.jsx` (+117 -38) 📝 `frontend/src/components/LLMSelection/LMStudioOptions/index.jsx` (+119 -43) 📝 `frontend/src/components/LLMSelection/OllamaLLMOptions/index.jsx` (+117 -41) ➕ `frontend/src/hooks/useProviderEndpointAutoDiscovery.js` (+99 -0) 📝 `frontend/src/models/system.js` (+14 -1) 📝 `frontend/src/utils/constants.js` (+13 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #1755 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - Implement auto fetching to check common URLs used by Ollama and LMStudio to help with setup of these providers ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### 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:34:27 -05:00
yindo closed this issue 2026-02-22 18:34:27 -05:00
yindo changed title from [PR #1756] [FEAT] Auto detection for Ollama and LMStudio to [PR #1756] [MERGED] [FEAT] Auto detection for Ollama and LMStudio 2026-06-05 15:15:07 -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#3768