[PR #4114] [MERGED] Configurable message limit for embed chat widget #4525

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4114
Author: @shatfield4
Created: 7/9/2025
Status: Merged
Merged: 7/10/2025
Merged by: @timothycarambat

Base: masterHead: 4043-feat-embed-chat-history-limit-setting


📝 Commits (7)

  • a28df82 configurable message limit for embed widget
  • a8bedb1 remove console log
  • 647a0fd make field optional + add fallback
  • 9b8e7b3 rework validation logic
  • 3b3d156 Merge branch 'master' into 4043-feat-embed-chat-history-limit-setting
  • f0ee331 lint
  • 7c72dbe remove field specific guard, it cannot be lte 0 like all other fields

📊 Changes

7 files changed (+25 additions, -2 deletions)

View changed files

📝 frontend/src/pages/GeneralSettings/ChatEmbedWidgets/EmbedConfigs/EmbedRow/CodeSnippetModal/index.jsx (+1 -1)
📝 frontend/src/pages/GeneralSettings/ChatEmbedWidgets/EmbedConfigs/EmbedRow/EditEmbedModal/index.jsx (+6 -0)
📝 frontend/src/pages/GeneralSettings/ChatEmbedWidgets/EmbedConfigs/NewEmbedModal/index.jsx (+8 -0)
📝 server/models/embedConfig.js (+6 -0)
server/prisma/migrations/20250709230835_init/migration.sql (+2 -0)
📝 server/prisma/schema.prisma (+1 -0)
📝 server/utils/chats/embed.js (+1 -1)

📄 Description

r embed widget

Pull Request Type

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

Relevant Issues

resolves #4043

What is in this change?

  • Allows users to set and modify the message history limit to include as chat context for embed chat widgets

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/4114 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 7/9/2025 **Status:** ✅ Merged **Merged:** 7/10/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `4043-feat-embed-chat-history-limit-setting` --- ### 📝 Commits (7) - [`a28df82`](https://github.com/Mintplex-Labs/anything-llm/commit/a28df821d6d0e699f88ef7b71f013f4704bd0fe7) configurable message limit for embed widget - [`a8bedb1`](https://github.com/Mintplex-Labs/anything-llm/commit/a8bedb1ec63a71b161825fef92d94a08e31a2a26) remove console log - [`647a0fd`](https://github.com/Mintplex-Labs/anything-llm/commit/647a0fd9cf9eeb1b03bf5e09178e752da8118067) make field optional + add fallback - [`9b8e7b3`](https://github.com/Mintplex-Labs/anything-llm/commit/9b8e7b31d3bcf7325c17ec3986c03b37c967ecb6) rework validation logic - [`3b3d156`](https://github.com/Mintplex-Labs/anything-llm/commit/3b3d1565960ce1a9c6c8677da42788de91e8d02a) Merge branch 'master' into 4043-feat-embed-chat-history-limit-setting - [`f0ee331`](https://github.com/Mintplex-Labs/anything-llm/commit/f0ee331befaf2faae0adece65a7e53ae5bdd6c7b) lint - [`7c72dbe`](https://github.com/Mintplex-Labs/anything-llm/commit/7c72dbef11a4d383f3dcb0f3a802c7c24b1a3463) remove field specific guard, it cannot be lte 0 like all other fields ### 📊 Changes **7 files changed** (+25 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/GeneralSettings/ChatEmbedWidgets/EmbedConfigs/EmbedRow/CodeSnippetModal/index.jsx` (+1 -1) 📝 `frontend/src/pages/GeneralSettings/ChatEmbedWidgets/EmbedConfigs/EmbedRow/EditEmbedModal/index.jsx` (+6 -0) 📝 `frontend/src/pages/GeneralSettings/ChatEmbedWidgets/EmbedConfigs/NewEmbedModal/index.jsx` (+8 -0) 📝 `server/models/embedConfig.js` (+6 -0) ➕ `server/prisma/migrations/20250709230835_init/migration.sql` (+2 -0) 📝 `server/prisma/schema.prisma` (+1 -0) 📝 `server/utils/chats/embed.js` (+1 -1) </details> ### 📄 Description r embed widget ### 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 #4043 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - Allows users to set and modify the message history limit to include as chat context for embed chat widgets ### 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:36:00 -05:00
yindo closed this issue 2026-02-22 18:36:00 -05:00
yindo changed title from [PR #4114] Configurable message limit for embed chat widget to [PR #4114] [MERGED] Configurable message limit for embed chat widget 2026-06-05 15:19:00 -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#4525