[PR #3896] [MERGED] Handle invalid response bodies for ContextWindowFinder #4453

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3896
Author: @timothycarambat
Created: 5/27/2025
Status: Merged
Merged: 5/27/2025
Merged by: @timothycarambat

Base: masterHead: context-window-sync-failover


📝 Commits (1)

  • 879cf04 Handle invalid response bodies for contextwindowfinder

📊 Changes

1 file changed (+52 additions, -19 deletions)

View changed files

📝 server/utils/AiProviders/modelMap/index.js (+52 -19)

📄 Description

Handle issue where if the response body from the contextwindowfinder is invalid it seems to wipe the stored model map.

  • Validate response is what we expect
  • Do not sync on container start if storage is current via cached_at

🔄 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/3896 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 5/27/2025 **Status:** ✅ Merged **Merged:** 5/27/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `context-window-sync-failover` --- ### 📝 Commits (1) - [`879cf04`](https://github.com/Mintplex-Labs/anything-llm/commit/879cf047fa4007feb5dfa01989218d493455aa25) Handle invalid response bodies for contextwindowfinder ### 📊 Changes **1 file changed** (+52 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/AiProviders/modelMap/index.js` (+52 -19) </details> ### 📄 Description Handle issue where if the response body from the contextwindowfinder is invalid it seems to wipe the stored model map. - Validate response is what we expect - Do not sync on container start if storage is current via `cached_at` --- <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:51 -05:00
yindo closed this issue 2026-02-22 18:35:51 -05:00
yindo changed title from [PR #3896] Handle invalid response bodies for `ContextWindowFinder` to [PR #3896] [MERGED] Handle invalid response bodies for `ContextWindowFinder` 2026-06-05 15:18:38 -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#4453