[PR #4220] [MERGED] fix: API export-chats endpoint function import error #4562

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4220
Author: @nehaaprasad
Created: 7/30/2025
Status: Merged
Merged: 7/30/2025
Merged by: @timothycarambat

Base: masterHead: fix/prepare-workspace-chat-export


📝 Commits (2)

  • 1de06f5 fix: resolve prepareWorkspaceChatsForExport function not found error in API export-chats endpoint
  • d1107f4 Merge branch 'master' into fix/prepare-workspace-chat-export

📊 Changes

1 file changed (+5 additions, -6 deletions)

View changed files

📝 server/endpoints/api/system/index.js (+5 -6)

📄 Description

  • 🐛 fix

Relevant Issues

resolves #4215

What is in this change?

Fixed API export-chats endpoint error by correcting function import and call. Changed from non-existent prepareWorkspaceChatsForExport to correct exportChatsAsType function.

Additional Information

The bug was causing "prepareWorkspaceChatsForExport is not a function" error when exporting chat logs via API. Web UI export was working fine as it uses different endpoints.


🔄 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/4220 **Author:** [@nehaaprasad](https://github.com/nehaaprasad) **Created:** 7/30/2025 **Status:** ✅ Merged **Merged:** 7/30/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `fix/prepare-workspace-chat-export` --- ### 📝 Commits (2) - [`1de06f5`](https://github.com/Mintplex-Labs/anything-llm/commit/1de06f54ba711336c19fac3af6f8717da39e294f) fix: resolve prepareWorkspaceChatsForExport function not found error in API export-chats endpoint - [`d1107f4`](https://github.com/Mintplex-Labs/anything-llm/commit/d1107f4f780dcba8d486430d76b452d8d3e72bcc) Merge branch 'master' into fix/prepare-workspace-chat-export ### 📊 Changes **1 file changed** (+5 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `server/endpoints/api/system/index.js` (+5 -6) </details> ### 📄 Description - [x] 🐛 fix ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #4215 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> Fixed API export-chats endpoint error by correcting function import and call. Changed from non-existent `prepareWorkspaceChatsForExport` to correct `exportChatsAsType` function. ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> The bug was causing "prepareWorkspaceChatsForExport is not a function" error when exporting chat logs via API. Web UI export was working fine as it uses different endpoints. --- <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:05 -05:00
yindo closed this issue 2026-02-22 18:36:05 -05:00
yindo changed title from [PR #4220] fix: API export-chats endpoint function import error to [PR #4220] [MERGED] fix: API export-chats endpoint function import error 2026-06-05 15:19:12 -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#4562