[PR #582] [MERGED] Per workspace model selection #3410

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/582
Author: @shatfield4
Created: 1/12/2024
Status: Merged
Merged: 1/17/2024
Merged by: @timothycarambat

Base: masterHead: 503-feat-per-workspace-model-selection


📝 Commits (10+)

  • 8962e2d WIP model selection per workspace (migrations and openai saves properly
  • eea0803 revert OpenAiOption
  • 0e68c27 add support for models per workspace for anthropic, localAi, ollama, openAi, and togetherAi
  • 83804d4 remove unneeded comments
  • d62d571 Merge branch 'master' into 503-feat-per-workspace-model-selection
  • 8f56b54 update logic for when LLMProvider is reset, reset Ai provider files with master
  • 4554068 remove frontend/api reset of workspace chat and move logic to updateENV
  • 7d45a53 set preferred model for chat on class iinstantiation
  • 255cbfe remove extra param
  • 403855e linting

📊 Changes

24 files changed (+263 additions, -53 deletions)

View changed files

frontend/src/components/Modals/MangeWorkspace/Settings/ChatModelPreference/index.jsx (+120 -0)
frontend/src/components/Modals/MangeWorkspace/Settings/ChatModelPreference/useGetProviderModels.js (+49 -0)
📝 frontend/src/components/Modals/MangeWorkspace/Settings/index.jsx (+7 -1)
📝 frontend/src/components/Modals/MangeWorkspace/index.jsx (+1 -0)
📝 frontend/src/pages/GeneralSettings/LLMPreference/index.jsx (+2 -4)
📝 server/endpoints/api/system/index.js (+1 -1)
📝 server/endpoints/system.js (+3 -3)
📝 server/models/workspace.js (+15 -0)
server/prisma/migrations/20240113013409_init/migration.sql (+2 -0)
📝 server/prisma/schema.prisma (+1 -0)
📝 server/utils/AiProviders/anthropic/index.js (+3 -2)
📝 server/utils/AiProviders/azureOpenAi/index.js (+1 -1)
📝 server/utils/AiProviders/gemini/index.js (+3 -2)
📝 server/utils/AiProviders/lmStudio/index.js (+2 -2)
📝 server/utils/AiProviders/localAi/index.js (+2 -2)
📝 server/utils/AiProviders/native/index.js (+2 -2)
📝 server/utils/AiProviders/ollama/index.js (+2 -2)
📝 server/utils/AiProviders/openAi/index.js (+3 -2)
📝 server/utils/AiProviders/togetherAi/index.js (+2 -2)
📝 server/utils/chats/index.js (+1 -1)

...and 4 more files

📄 Description

Pull Request Type

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

Relevant Issues

resolves #503

What is in this change?

Describe the changes in this PR that are impactful to the repo.

  • Allows users to select model for each workspace in workspace settings tab

Additional Information

Add any other context about the Pull Request here that was not captured above.

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/582 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 1/12/2024 **Status:** ✅ Merged **Merged:** 1/17/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `503-feat-per-workspace-model-selection` --- ### 📝 Commits (10+) - [`8962e2d`](https://github.com/Mintplex-Labs/anything-llm/commit/8962e2d39cf3ea2367068fe30642b745777ea124) WIP model selection per workspace (migrations and openai saves properly - [`eea0803`](https://github.com/Mintplex-Labs/anything-llm/commit/eea080369b2aa1fc13d44ee319b32b907bab85cc) revert OpenAiOption - [`0e68c27`](https://github.com/Mintplex-Labs/anything-llm/commit/0e68c270bd8f434b90d2f13f5ad504aa5189b96b) add support for models per workspace for anthropic, localAi, ollama, openAi, and togetherAi - [`83804d4`](https://github.com/Mintplex-Labs/anything-llm/commit/83804d4073bddc5a502377554809d83f4565807a) remove unneeded comments - [`d62d571`](https://github.com/Mintplex-Labs/anything-llm/commit/d62d5715b96925f4684c74a11e7cc2ae1f0ddee2) Merge branch 'master' into 503-feat-per-workspace-model-selection - [`8f56b54`](https://github.com/Mintplex-Labs/anything-llm/commit/8f56b54960fa51ef1d6c64db82ac9325b022522a) update logic for when LLMProvider is reset, reset Ai provider files with master - [`4554068`](https://github.com/Mintplex-Labs/anything-llm/commit/4554068242613318369ed1e09d79925076d3dfe6) remove frontend/api reset of workspace chat and move logic to updateENV - [`7d45a53`](https://github.com/Mintplex-Labs/anything-llm/commit/7d45a532870e1d017e03306c4aa353601bc92569) set preferred model for chat on class iinstantiation - [`255cbfe`](https://github.com/Mintplex-Labs/anything-llm/commit/255cbfec118cfe492f31df260c6e381460cd25fc) remove extra param - [`403855e`](https://github.com/Mintplex-Labs/anything-llm/commit/403855ecc0c305abf57ec554c07c3cdc2c04b24c) linting ### 📊 Changes **24 files changed** (+263 additions, -53 deletions) <details> <summary>View changed files</summary> ➕ `frontend/src/components/Modals/MangeWorkspace/Settings/ChatModelPreference/index.jsx` (+120 -0) ➕ `frontend/src/components/Modals/MangeWorkspace/Settings/ChatModelPreference/useGetProviderModels.js` (+49 -0) 📝 `frontend/src/components/Modals/MangeWorkspace/Settings/index.jsx` (+7 -1) 📝 `frontend/src/components/Modals/MangeWorkspace/index.jsx` (+1 -0) 📝 `frontend/src/pages/GeneralSettings/LLMPreference/index.jsx` (+2 -4) 📝 `server/endpoints/api/system/index.js` (+1 -1) 📝 `server/endpoints/system.js` (+3 -3) 📝 `server/models/workspace.js` (+15 -0) ➕ `server/prisma/migrations/20240113013409_init/migration.sql` (+2 -0) 📝 `server/prisma/schema.prisma` (+1 -0) 📝 `server/utils/AiProviders/anthropic/index.js` (+3 -2) 📝 `server/utils/AiProviders/azureOpenAi/index.js` (+1 -1) 📝 `server/utils/AiProviders/gemini/index.js` (+3 -2) 📝 `server/utils/AiProviders/lmStudio/index.js` (+2 -2) 📝 `server/utils/AiProviders/localAi/index.js` (+2 -2) 📝 `server/utils/AiProviders/native/index.js` (+2 -2) 📝 `server/utils/AiProviders/ollama/index.js` (+2 -2) 📝 `server/utils/AiProviders/openAi/index.js` (+3 -2) 📝 `server/utils/AiProviders/togetherAi/index.js` (+2 -2) 📝 `server/utils/chats/index.js` (+1 -1) _...and 4 more files_ </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 #503 ### What is in this change? Describe the changes in this PR that are impactful to the repo. - Allows users to select model for each workspace in workspace settings tab ### 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 - [x] I have tested my code functionality - [ ] 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:43 -05:00
yindo closed this issue 2026-02-22 18:33:43 -05:00
yindo changed title from [PR #582] Per workspace model selection to [PR #582] [MERGED] Per workspace model selection 2026-06-05 15:13:16 -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#3410