[PR #4811] [MERGED] fix: validate chat message input #4776

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4811
Author: @Ocheretovich
Created: 12/27/2025
Status: Merged
Merged: 1/8/2026
Merged by: @timothycarambat

Base: masterHead: master


📝 Commits (3)

  • e0d860c fix: validate chat message input
  • 49997d8 fix: align message validation for thread stream-chat endpoint
  • 3ecfa24 Merge branch 'master' into master

📊 Changes

1 file changed (+4 additions, -4 deletions)

View changed files

📝 server/endpoints/chat.js (+4 -4)

📄 Description

Ensures chat messages are valid non-empty strings before processing.
Prevents invalid inputs from causing unexpected behavior.


🔄 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/4811 **Author:** [@Ocheretovich](https://github.com/Ocheretovich) **Created:** 12/27/2025 **Status:** ✅ Merged **Merged:** 1/8/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`e0d860c`](https://github.com/Mintplex-Labs/anything-llm/commit/e0d860c712f2474716f9ce4cf5d63dfc728e7598) fix: validate chat message input - [`49997d8`](https://github.com/Mintplex-Labs/anything-llm/commit/49997d8a5fe60d7cb7a6a3de1dcba883b8f6b337) fix: align message validation for thread stream-chat endpoint - [`3ecfa24`](https://github.com/Mintplex-Labs/anything-llm/commit/3ecfa240f7e36e2c2908f10b8a580765089cb5a2) Merge branch 'master' into master ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `server/endpoints/chat.js` (+4 -4) </details> ### 📄 Description Ensures chat messages are valid non-empty strings before processing. Prevents invalid inputs from causing unexpected behavior. --- <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:30 -05:00
yindo closed this issue 2026-02-22 18:36:30 -05:00
yindo changed title from [PR #4811] fix: validate chat message input to [PR #4811] [MERGED] fix: validate chat message input 2026-06-05 15:20:20 -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#4776