Closed kakhulu31 closed 1 year ago
I think this happened when @sceuick merged their Agnaistic implementation with my TavernAI one. Looks like we lost the timestamp
property on imported log lines, which I had assumed was necessary since the database sorts chat messages chronologically. Without the timestamp, all imported messages get the same createdAt
time (visible in the screenshot) and presumably the tiebreaker becomes (I guess?) reverse database insert order.
Might be possible to quickly fix this by adding .reverse()
to the Tavern import parser, but re-adding timestamp
might be preferable since database insert order is a bit of an opaque way for them to sort (if that is indeed what's happening).
I'll get this all fixed up.
Actually they're sorting in the correct order in the chat UI but not when building the prompt, huh... 🤔
Might be due to the timestamps all being the same. Need to constantly increment it most likely.
Pushed some fixes for this. Let me know how they go.
Pushed some fixes for this. Let me know how they go.
Works for logged-in users 👍 needs the same fix for localstorage mode
Opened https://github.com/luminai-companion/agn-ai/pull/98 for the above