[PR #3448] [CLOSED] Add thoughts option to embed chat widget + UI improvements #4285

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3448
Author: @shatfield4
Created: 3/12/2025
Status: Closed

Base: masterHead: 3339-feat-hide-thoughts-on-embed-chat-widget


📝 Commits (8)

  • 2be6f09 wip hide thinking in embed chat widget
  • 37057ca improve scrolling/layout of embed widget
  • 635b50d Merge branch 'master' into 3339-feat-hide-thoughts-on-embed-chat-widget
  • 23c062c implement thoughts toggle in embed chat widget
  • 233ce26 publish updated embed chat with new thinking ui
  • bb00d9a revert unneeded backend changes
  • 6140a47 lint
  • 731fca0 replace migration, default false on showThoughts

📊 Changes

9 files changed (+37 additions, -11 deletions)

View changed files

📝 embed (+1 -1)
📝 frontend/public/embed/anythingllm-chat-widget.min.css (+1 -1)
📝 frontend/public/embed/anythingllm-chat-widget.min.js (+5 -5)
📝 frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/CodeSnippetModal/index.jsx (+1 -0)
📝 frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/EditEmbedModal/index.jsx (+6 -0)
📝 frontend/src/pages/GeneralSettings/EmbedConfigs/NewEmbedModal/index.jsx (+14 -4)
📝 server/models/embedConfig.js (+6 -0)
server/prisma/migrations/20250404224329_init/migration.sql (+2 -0)
📝 server/prisma/schema.prisma (+1 -0)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #3339

What is in this change?

  • Fix unnatural containers in embedded chat widget (scrolling inside of 2 containers)
  • Fix UI of scroll down button
  • Implement option to hide/show thoughts from thinking models in embed chat settings
  • Added new thinking state that shows in embed widget when <think> tag detected
  • Added collapsable menu to hide/show thoughts during streaming and after message is complete
  • Support data-show-thoughts attribute in embed chat widget to enable/disable option via html

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/3448 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 3/12/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `3339-feat-hide-thoughts-on-embed-chat-widget` --- ### 📝 Commits (8) - [`2be6f09`](https://github.com/Mintplex-Labs/anything-llm/commit/2be6f09cbff36f5f99c40b41c796393598004f9f) wip hide thinking in embed chat widget - [`37057ca`](https://github.com/Mintplex-Labs/anything-llm/commit/37057ca7d68d47cbb81a75ced8008b835255e60e) improve scrolling/layout of embed widget - [`635b50d`](https://github.com/Mintplex-Labs/anything-llm/commit/635b50d6894e0a330e1cda3238a00338cd949340) Merge branch 'master' into 3339-feat-hide-thoughts-on-embed-chat-widget - [`23c062c`](https://github.com/Mintplex-Labs/anything-llm/commit/23c062cafe03e2ddd67893a1f0a2c0b40ab6d588) implement thoughts toggle in embed chat widget - [`233ce26`](https://github.com/Mintplex-Labs/anything-llm/commit/233ce260f08c50073ed9d4d815cf4e80a4437cda) publish updated embed chat with new thinking ui - [`bb00d9a`](https://github.com/Mintplex-Labs/anything-llm/commit/bb00d9a3af0a476a355670041a15e057f0bd5779) revert unneeded backend changes - [`6140a47`](https://github.com/Mintplex-Labs/anything-llm/commit/6140a47ea64c1292ff2fd34083b5da28d12cc8ef) lint - [`731fca0`](https://github.com/Mintplex-Labs/anything-llm/commit/731fca0fccecb6c2222d6d1bd52998e8ed3cd3b2) replace migration, default false on showThoughts ### 📊 Changes **9 files changed** (+37 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `embed` (+1 -1) 📝 `frontend/public/embed/anythingllm-chat-widget.min.css` (+1 -1) 📝 `frontend/public/embed/anythingllm-chat-widget.min.js` (+5 -5) 📝 `frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/CodeSnippetModal/index.jsx` (+1 -0) 📝 `frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/EditEmbedModal/index.jsx` (+6 -0) 📝 `frontend/src/pages/GeneralSettings/EmbedConfigs/NewEmbedModal/index.jsx` (+14 -4) 📝 `server/models/embedConfig.js` (+6 -0) ➕ `server/prisma/migrations/20250404224329_init/migration.sql` (+2 -0) 📝 `server/prisma/schema.prisma` (+1 -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 #3339 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - Fix unnatural containers in embedded chat widget (scrolling inside of 2 containers) - Fix UI of scroll down button - Implement option to hide/show thoughts from thinking models in embed chat settings - Added new thinking state that shows in embed widget when `<think>` tag detected - Added collapsable menu to hide/show thoughts during streaming and after message is complete - Support `data-show-thoughts` attribute in embed chat widget to enable/disable option via html ### 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:35:31 -05:00
yindo closed this issue 2026-02-22 18:35:31 -05:00
yindo changed title from [PR #3448] Add thoughts option to embed chat widget + UI improvements to [PR #3448] [CLOSED] Add thoughts option to embed chat widget + UI improvements 2026-06-05 15:17:47 -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#4285