[PR #3969] [MERGED] Enable UI/UX for model swapping in chat window #4479

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3969
Author: @timothycarambat
Created: 6/6/2025
Status: Merged
Merged: 6/9/2025
Merged by: @timothycarambat

Base: masterHead: 2095-model-swap-in-chat


📝 Commits (10+)

  • caca616 Enable UI/UX for model swapping in chat window
  • f38444b Merge branch 'master' into 2095-model-swap-in-chat
  • 0d3745a forgot component
  • 1999969 patch useGetProviders hook to set loading on change of provider
  • 15a2316 dev build
  • 871edf2 normalize translations
  • 0ef25a0 Merge branch '2095-model-swap-in-chat' of github.com:Mintplex-Labs/anything-llm into 2095-model-swap-in-chat
  • e528b60 patch how model default is provided
  • aead043 Merge branch '2095-model-swap-in-chat' of github.com:Mintplex-Labs/anything-llm into 2095-model-swap-in-chat
  • 0710984 Merge branch 'master' into 2095-model-swap-in-chat

📊 Changes

32 files changed (+907 additions, -2 deletions)

View changed files

📝 .github/workflows/dev-build.yaml (+1 -1)
📝 frontend/src/components/ModalWrapper/index.jsx (+3 -0)
frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/ChatModelSelection/index.jsx (+120 -0)
frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/LLMSelector/index.jsx (+42 -0)
frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/SetupProvider/index.jsx (+109 -0)
frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/action.jsx (+131 -0)
frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/index.jsx (+151 -0)
frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/utils.js (+61 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx (+2 -0)
📝 frontend/src/hooks/useGetProvidersModels.js (+1 -0)
📝 frontend/src/locales/ar/common.js (+11 -0)
📝 frontend/src/locales/da/common.js (+11 -0)
📝 frontend/src/locales/de/common.js (+11 -0)
📝 frontend/src/locales/en/common.js (+11 -0)
📝 frontend/src/locales/es/common.js (+11 -0)
📝 frontend/src/locales/fa/common.js (+11 -0)
📝 frontend/src/locales/fr/common.js (+11 -0)
📝 frontend/src/locales/he/common.js (+11 -0)
📝 frontend/src/locales/it/common.js (+11 -0)
📝 frontend/src/locales/ja/common.js (+11 -0)

...and 12 more files

📄 Description

Pull Request Type

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

Relevant Issues

resolves #2095

What is in this change?

  • Enable model swapping for the workspace model in chat
  • Chat open with cmd/ctrl + Shift + L when in workspace menu (need to do again to dismiss)
  • Can also hover over icon in ui to show popover
  • Ability to search across providers in UI

Additional Information

  • Enables swapping of the workspace model/provider combination
  • Includes a hook to show the config window if provider credentials have not been set up yet
  • Includes light mode styles

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

Screenshots

Screenshot 2025-06-06 at 2 45 06 PM Screenshot 2025-06-06 at 2 45 26 PM Screenshot 2025-06-06 at 2 45 40 PM Screenshot 2025-06-06 at 2 45 52 PM Screenshot 2025-06-06 at 2 46 01 PM

🔄 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/3969 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 6/6/2025 **Status:** ✅ Merged **Merged:** 6/9/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `2095-model-swap-in-chat` --- ### 📝 Commits (10+) - [`caca616`](https://github.com/Mintplex-Labs/anything-llm/commit/caca616c6504075a5be6ef85ebf1b626abb994aa) Enable UI/UX for model swapping in chat window - [`f38444b`](https://github.com/Mintplex-Labs/anything-llm/commit/f38444b1fd97f636dff8ac1f119e4b6a5877e493) Merge branch 'master' into 2095-model-swap-in-chat - [`0d3745a`](https://github.com/Mintplex-Labs/anything-llm/commit/0d3745ac5cb8153aa6bcc864533a918c90e33c35) forgot component - [`1999969`](https://github.com/Mintplex-Labs/anything-llm/commit/19999697d548c1e87dab616e1f9d6933a1731523) patch useGetProviders hook to set loading on change of provider - [`15a2316`](https://github.com/Mintplex-Labs/anything-llm/commit/15a231637c5d572e20e76d412fd50249a10a5c69) dev build - [`871edf2`](https://github.com/Mintplex-Labs/anything-llm/commit/871edf26b8b2bc4cbc8755d7ab68ca760bbb24db) normalize translations - [`0ef25a0`](https://github.com/Mintplex-Labs/anything-llm/commit/0ef25a051801bc65fe51f808ef239bb441d8fecb) Merge branch '2095-model-swap-in-chat' of github.com:Mintplex-Labs/anything-llm into 2095-model-swap-in-chat - [`e528b60`](https://github.com/Mintplex-Labs/anything-llm/commit/e528b60f212544dc504b4306eca51680262ea8ba) patch how model default is provided - [`aead043`](https://github.com/Mintplex-Labs/anything-llm/commit/aead043b5a244d0fa6a63f59a83178603ba6621e) Merge branch '2095-model-swap-in-chat' of github.com:Mintplex-Labs/anything-llm into 2095-model-swap-in-chat - [`0710984`](https://github.com/Mintplex-Labs/anything-llm/commit/0710984883f7aecbe6fa10b573ae0cf8a4c2ce33) Merge branch 'master' into 2095-model-swap-in-chat ### 📊 Changes **32 files changed** (+907 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/dev-build.yaml` (+1 -1) 📝 `frontend/src/components/ModalWrapper/index.jsx` (+3 -0) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/ChatModelSelection/index.jsx` (+120 -0) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/LLMSelector/index.jsx` (+42 -0) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/SetupProvider/index.jsx` (+109 -0) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/action.jsx` (+131 -0) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/index.jsx` (+151 -0) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/utils.js` (+61 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx` (+2 -0) 📝 `frontend/src/hooks/useGetProvidersModels.js` (+1 -0) 📝 `frontend/src/locales/ar/common.js` (+11 -0) 📝 `frontend/src/locales/da/common.js` (+11 -0) 📝 `frontend/src/locales/de/common.js` (+11 -0) 📝 `frontend/src/locales/en/common.js` (+11 -0) 📝 `frontend/src/locales/es/common.js` (+11 -0) 📝 `frontend/src/locales/fa/common.js` (+11 -0) 📝 `frontend/src/locales/fr/common.js` (+11 -0) 📝 `frontend/src/locales/he/common.js` (+11 -0) 📝 `frontend/src/locales/it/common.js` (+11 -0) 📝 `frontend/src/locales/ja/common.js` (+11 -0) _...and 12 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 #2095 ### What is in this change? - Enable model swapping for the _workspace_ model in chat - Chat open with `cmd/ctrl + Shift + L` when in workspace menu (need to do again to dismiss) - Can also hover over icon in ui to show popover - Ability to search across providers in UI <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information - Enables swapping of the workspace model/provider combination - Includes a hook to show the config window if provider credentials have not been set up yet - Includes light mode styles <!-- 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 ### Screenshots <img width="1789" alt="Screenshot 2025-06-06 at 2 45 06 PM" src="https://github.com/user-attachments/assets/8e186ad3-0468-42a4-9cbd-e61ae6af1042" /> <img width="1792" alt="Screenshot 2025-06-06 at 2 45 26 PM" src="https://github.com/user-attachments/assets/2feb68f3-8272-4fe2-9b66-f200729572ed" /> <img width="1789" alt="Screenshot 2025-06-06 at 2 45 40 PM" src="https://github.com/user-attachments/assets/7c067a0a-f733-495a-9617-f84a4caf79bf" /> <img width="1795" alt="Screenshot 2025-06-06 at 2 45 52 PM" src="https://github.com/user-attachments/assets/3f43db47-527f-417a-8aa1-5999f742ee1c" /> <img width="1794" alt="Screenshot 2025-06-06 at 2 46 01 PM" src="https://github.com/user-attachments/assets/7102d403-fe17-40cb-87a1-b7e6dafc7b59" /> --- <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:35:55 -05:00
yindo closed this issue 2026-02-22 18:35:55 -05:00
yindo changed title from [PR #3969] Enable UI/UX for model swapping in chat window to [PR #3969] [MERGED] Enable UI/UX for model swapping in chat window 2026-06-05 15:18:46 -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#4479