Closed kabaluyot closed 3 weeks ago
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
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.
Are there known steps to reproduce?
No response