[PR #2374] [MERGED] 1417 completion timeout #3968

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2374
Author: @timothycarambat
Created: 9/25/2024
Status: Merged
Merged: 9/25/2024
Merged by: @timothycarambat

Base: masterHead: 1417-completion-timeout


📝 Commits (7)

  • 7985f38 Refactor handleDefaultStreamResponseV2 function for better error handling
  • b2e7ff0 Merge branch 'master' into 1417-completion-timeout
  • d64eb93 run yarn lint
  • ce407ed small error handling changes
  • fe302ce update error handling flow and scope of vars
  • 2e33488 add back space
  • 988a798 Merge branch 'master' into 1417-completion-timeout

📊 Changes

1 file changed (+48 additions, -34 deletions)

View changed files

📝 server/utils/helpers/chat/responses.js (+48 -34)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #1417
closes #2356

What is in this change?

Implemented an error handler for handleDefaultStreamResponseV2 to manage socket timeouts effectively. Instead of crashing, the app will now respond with a "Socket timeout" message in the chat window.

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/2374 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 9/25/2024 **Status:** ✅ Merged **Merged:** 9/25/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `1417-completion-timeout` --- ### 📝 Commits (7) - [`7985f38`](https://github.com/Mintplex-Labs/anything-llm/commit/7985f389050ecc1321bb721e84b019a59c2da6bb) Refactor handleDefaultStreamResponseV2 function for better error handling - [`b2e7ff0`](https://github.com/Mintplex-Labs/anything-llm/commit/b2e7ff0e673a0a802e2f8b0c30a4463808df3693) Merge branch 'master' into 1417-completion-timeout - [`d64eb93`](https://github.com/Mintplex-Labs/anything-llm/commit/d64eb938b9e6a7ffbd005e4638e53b8f844c26a8) run yarn lint - [`ce407ed`](https://github.com/Mintplex-Labs/anything-llm/commit/ce407edebe9d82572ca0c1500a9ff8b6a27baab1) small error handling changes - [`fe302ce`](https://github.com/Mintplex-Labs/anything-llm/commit/fe302ce8e058b1b733e52b4bcb0ff236039acd83) update error handling flow and scope of vars - [`2e33488`](https://github.com/Mintplex-Labs/anything-llm/commit/2e33488a04dda341ff91bb1dfb66fa1321dfd855) add back space - [`988a798`](https://github.com/Mintplex-Labs/anything-llm/commit/988a798d598bdc60f891e081dcdb26dd17b5983a) Merge branch 'master' into 1417-completion-timeout ### 📊 Changes **1 file changed** (+48 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/helpers/chat/responses.js` (+48 -34) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [x] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #1417 closes #2356 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> Implemented an error handler for handleDefaultStreamResponseV2 to manage socket timeouts effectively. Instead of crashing, the app will now respond with a "Socket timeout" message in the chat window. ### 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:52 -05:00
yindo closed this issue 2026-02-22 18:34:52 -05:00
yindo changed title from [PR #2374] 1417 completion timeout to [PR #2374] [MERGED] 1417 completion timeout 2026-06-05 15:16:08 -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#3968