[PR #5734] [CLOSED] 1440 different ollama provider per workspace #5547

Closed
opened 2026-06-05 15:21:42 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5734
Author: @breesait
Created: 6/1/2026
Status: Closed

Base: masterHead: 1440-different-ollama-provider-per-workspace


📝 Commits (10+)

  • 22e3bcd feat: Add Ollama connection management, APIs, and model integration
  • 3dc65e2 feat: Add Ollama connection management UI and integrate connection-based model fetching
  • 0297dfb feat: added unit tests.
  • 45f2ecb feat: removed responseTimeout from the ollama connections
  • d8e4104 feat: sync the default llm page with the ollama connection page
  • ba986a1 feat: small improvement
  • 7d21ef0 feat: fix react state
  • 093cdfa chore: apply yarn lint --fix formatting
  • 21d4502 chore: making more meaningful var names.
  • 02acaa3 chore: small jsdoc changes.

📊 Changes

30 files changed (+2397 additions, -71 deletions)

View changed files

frontend/src/components/LLMSelection/OllamaLLMOptions/ConnectionsManager.jsx (+400 -0)
📝 frontend/src/components/LLMSelection/OllamaLLMOptions/index.jsx (+5 -0)
frontend/src/components/OllamaConnectionSelector/index.jsx (+89 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/ChatModelSelection/index.jsx (+15 -2)
frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/OllamaConnectionInline.jsx (+68 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/index.jsx (+40 -6)
📝 frontend/src/hooks/useGetProvidersModels.js (+34 -4)
frontend/src/models/ollamaConnection.js (+57 -0)
📝 frontend/src/pages/WorkspaceSettings/AgentConfig/AgentLLMSelection/index.jsx (+21 -0)
📝 frontend/src/pages/WorkspaceSettings/AgentConfig/AgentModelSelection/index.jsx (+17 -2)
📝 frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/ChatModelSelection/index.jsx (+17 -2)
📝 frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx (+28 -1)
📝 frontend/src/utils/types.js (+3 -0)
server/__tests__/models/ollamaConnection.test.js (+435 -0)
server/__tests__/models/workspace.test.js (+45 -0)
server/__tests__/utils/AiProviders/ollama/index.test.js (+214 -0)
server/__tests__/utils/agents/models/context-windows/.cached_at (+1 -0)
server/__tests__/utils/agents/models/context-windows/context-windows.json (+414 -0)
server/endpoints/ollamaConnections.js (+90 -0)
📝 server/index.js (+2 -0)

...and 10 more files

📄 Description

Pull Request Type

  • feat (New feature)
  • 🐛 fix (Bug fix)
  • ♻️ refactor (Code refactoring without changing behavior)
  • 💄 style (UI style changes)
  • 🔨 chore (Build, CI, maintenance)
  • 📝 docs (Documentation updates)

Relevant Issues

resolves #1440

resolves #

Description

Adds support for multiple named Ollama connections and lets each workspace
pick the one it should use, instead of every workspace sharing a single
OLLAMA_BASE_PATH from the environment.

Visuals (if applicable)

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated (if applicable)
  • 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/5734 **Author:** [@breesait](https://github.com/breesait) **Created:** 6/1/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `1440-different-ollama-provider-per-workspace` --- ### 📝 Commits (10+) - [`22e3bcd`](https://github.com/Mintplex-Labs/anything-llm/commit/22e3bcde0cd0f4926bddcd990e24544b106ceabb) feat: Add Ollama connection management, APIs, and model integration - [`3dc65e2`](https://github.com/Mintplex-Labs/anything-llm/commit/3dc65e2523a51b5f8febc36e4b08f3c21b2e6cdd) feat: Add Ollama connection management UI and integrate connection-based model fetching - [`0297dfb`](https://github.com/Mintplex-Labs/anything-llm/commit/0297dfb5116b445da9b7442a13f39600b77530cb) feat: added unit tests. - [`45f2ecb`](https://github.com/Mintplex-Labs/anything-llm/commit/45f2ecbd336f23dc4b4a8a76b12b024ad445b59d) feat: removed responseTimeout from the ollama connections - [`d8e4104`](https://github.com/Mintplex-Labs/anything-llm/commit/d8e410492eed7b6f2484ab9fbbf5ec520a39d5b8) feat: sync the default llm page with the ollama connection page - [`ba986a1`](https://github.com/Mintplex-Labs/anything-llm/commit/ba986a154ba7a74aea116691c1ab47bb8337b77d) feat: small improvement - [`7d21ef0`](https://github.com/Mintplex-Labs/anything-llm/commit/7d21ef01bc1fe9b19f1c5b473faa818868fa3531) feat: fix react state - [`093cdfa`](https://github.com/Mintplex-Labs/anything-llm/commit/093cdfa14810a50ad231f24a5b881a1bc90f17d2) chore: apply yarn lint --fix formatting - [`21d4502`](https://github.com/Mintplex-Labs/anything-llm/commit/21d45020cd41b41ba696cc95994e292e3d092ad7) chore: making more meaningful var names. - [`02acaa3`](https://github.com/Mintplex-Labs/anything-llm/commit/02acaa372c62c26ac9e9d9779257780b0831c314) chore: small jsdoc changes. ### 📊 Changes **30 files changed** (+2397 additions, -71 deletions) <details> <summary>View changed files</summary> ➕ `frontend/src/components/LLMSelection/OllamaLLMOptions/ConnectionsManager.jsx` (+400 -0) 📝 `frontend/src/components/LLMSelection/OllamaLLMOptions/index.jsx` (+5 -0) ➕ `frontend/src/components/OllamaConnectionSelector/index.jsx` (+89 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/ChatModelSelection/index.jsx` (+15 -2) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/OllamaConnectionInline.jsx` (+68 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/index.jsx` (+40 -6) 📝 `frontend/src/hooks/useGetProvidersModels.js` (+34 -4) ➕ `frontend/src/models/ollamaConnection.js` (+57 -0) 📝 `frontend/src/pages/WorkspaceSettings/AgentConfig/AgentLLMSelection/index.jsx` (+21 -0) 📝 `frontend/src/pages/WorkspaceSettings/AgentConfig/AgentModelSelection/index.jsx` (+17 -2) 📝 `frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/ChatModelSelection/index.jsx` (+17 -2) 📝 `frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx` (+28 -1) 📝 `frontend/src/utils/types.js` (+3 -0) ➕ `server/__tests__/models/ollamaConnection.test.js` (+435 -0) ➕ `server/__tests__/models/workspace.test.js` (+45 -0) ➕ `server/__tests__/utils/AiProviders/ollama/index.test.js` (+214 -0) ➕ `server/__tests__/utils/agents/models/context-windows/.cached_at` (+1 -0) ➕ `server/__tests__/utils/agents/models/context-windows/context-windows.json` (+414 -0) ➕ `server/endpoints/ollamaConnections.js` (+90 -0) 📝 `server/index.js` (+2 -0) _...and 10 more files_ </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat (New feature) - [ ] 🐛 fix (Bug fix) - [ ] ♻️ refactor (Code refactoring without changing behavior) - [ ] 💄 style (UI style changes) - [ ] 🔨 chore (Build, CI, maintenance) - [ ] 📝 docs (Documentation updates) ### Relevant Issues resolves #1440 resolves # ### Description Adds support for **multiple named Ollama connections** and lets each workspace pick the one it should use, instead of every workspace sharing a single `OLLAMA_BASE_PATH` from the environment. ### Visuals (if applicable) <!-- Add screenshots or screen recordings to demonstrate the changes, especially for UI updates. --> ### 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 - [ ] Relevant documentation has been updated (if applicable) - [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-06-05 15:21:42 -04:00
yindo closed this issue 2026-06-05 15:21:42 -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#5547