anything-llm icon indicating copy to clipboard operation
anything-llm copied to clipboard

[FEAT]: Workspace Chat API Export starting at chat ID

Open mark3apps opened this issue 2 years ago • 0 comments

What would you like to see?

Love that you guys added in the API export option for Workspace Chats but the current implementation makes it difficult to pull chats say every day because the page index field given now isn't a field that I'm able to reliably ensure I get only the new chats since my last export. Since Chat's always iterate up by 1, using that as the option to filter chats would be perfect. So on my first export I would set the ID to 1 and I'd get all chats, with the ID 1 and higher, the next day, I'd do say 52, and it'd give me all chats with the id 52 and higher. Since I'll know that 51 was the highest chat from the previous day.

As a bonus, it'd be cool to be able to filter by Workspace as well but that's just a nice extra.

mark3apps avatar Mar 05 '24 18:03 mark3apps