[GH-ISSUE #2556] [FEATURE]: Workspace chat history Dev API improvements #1656

Closed
opened 2026-02-22 18:25:54 -05:00 by yindo · 1 comment
Owner

Originally created by @kabaluyot on GitHub (Oct 29, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2556

Originally assigned to: @shatfield4 on GitHub.

How are you running AnythingLLM?

Docker (local)

What happened?

Even if chat history limit is set to 20, the workspace chat history endpoint still returns all data making the API call longer when having lots of chat history.

Screen Shot 2024-10-30 at 9 13 05 AM

image

Are there known steps to reproduce?

No response

Originally created by @kabaluyot on GitHub (Oct 29, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2556 Originally assigned to: @shatfield4 on GitHub. ### How are you running AnythingLLM? Docker (local) ### What happened? Even if chat history limit is set to 20, the workspace chat history endpoint still returns all data making the API call longer when having lots of chat history. <img width="759" alt="Screen Shot 2024-10-30 at 9 13 05 AM" src="https://github.com/user-attachments/assets/38cbbba8-adc9-4304-a6bc-fe7cf7dafecf"> ![image](https://github.com/user-attachments/assets/ff803873-52af-4a42-a672-5ffe090312ae) ### Are there known steps to reproduce? _No response_
yindo added the enhancementfeature request labels 2026-02-22 18:25:54 -05:00
yindo closed this issue 2026-02-22 18:25:54 -05:00
Author
Owner

@timothycarambat commented on GitHub (Oct 30, 2024):

That property is under Chat settings, so it only applies during chats (via UI or API).

The workspace/chats endpoint is exactly for retrieving all chats within the system. What should be done is we should add an optional limit and orderBy to this endpoint so it works like a RESTful endpoint

@timothycarambat commented on GitHub (Oct 30, 2024): That property is under **Chat settings**, so it only applies during chats (via UI or API). The workspace/chats endpoint is exactly for retrieving all chats within the system. What should be done is we should add an optional limit and orderBy to this endpoint so it works like a RESTful endpoint
yindo changed title from [FEATURE]: Workspace chat history Dev API improvements to [GH-ISSUE #2556] [FEATURE]: Workspace chat history Dev API improvements 2026-06-05 14:41:58 -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#1656