[PR #1727] [MERGED] [FEAT] Persist query mode refusal responses as chat history #3760

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/1727
Author: @shatfield4
Created: 6/19/2024
Status: Merged
Merged: 6/20/2024
Merged by: @timothycarambat

Base: masterHead: 1696-feat-persist-query-mode-refusal-responses-as-chat-history


📝 Commits (3)

  • 1ef9342 log query refusals to workspace chats but hide in ui
  • cde1654 Merge branch 'master' into 1696-feat-persist-query-mode-refusal-responses-as-chat-history
  • aaf16b4 linting

📊 Changes

3 files changed (+71 additions, -12 deletions)

View changed files

📝 server/models/workspaceChats.js (+2 -0)
📝 server/utils/chats/index.js (+36 -6)
📝 server/utils/chats/stream.js (+33 -6)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #1696

What is in this change?

  • When chatting in query mode, the refusal response is now logged to the workspace chats but has include: false so that the messages do not show in the workspace after it has been shown once
  • Implemented for chatWithWorkspace and streamChatWithWorkspace functions
  • Users reported they use this as a datapoint when using the developer API

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/1727 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 6/19/2024 **Status:** ✅ Merged **Merged:** 6/20/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `1696-feat-persist-query-mode-refusal-responses-as-chat-history` --- ### 📝 Commits (3) - [`1ef9342`](https://github.com/Mintplex-Labs/anything-llm/commit/1ef93425dc29a684f6a1413c0c4fc7a6a5dd3434) log query refusals to workspace chats but hide in ui - [`cde1654`](https://github.com/Mintplex-Labs/anything-llm/commit/cde16546fd9ab65a2a12ae7edd7d6e1ca9c53803) Merge branch 'master' into 1696-feat-persist-query-mode-refusal-responses-as-chat-history - [`aaf16b4`](https://github.com/Mintplex-Labs/anything-llm/commit/aaf16b42402d13b76aee6b92c0af49edeb243646) linting ### 📊 Changes **3 files changed** (+71 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `server/models/workspaceChats.js` (+2 -0) 📝 `server/utils/chats/index.js` (+36 -6) 📝 `server/utils/chats/stream.js` (+33 -6) </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 #1696 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - When chatting in query mode, the refusal response is now logged to the workspace chats but has `include: false` so that the messages do not show in the workspace after it has been shown once - Implemented for `chatWithWorkspace` and `streamChatWithWorkspace` functions - Users reported they use this as a datapoint when using the developer API ### 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:34:26 -05:00
yindo closed this issue 2026-02-22 18:34:26 -05:00
yindo changed title from [PR #1727] [FEAT] Persist query mode refusal responses as chat history to [PR #1727] [MERGED] [FEAT] Persist query mode refusal responses as chat history 2026-06-05 15:15:04 -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#3760