Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance chat retrieval and update functionality in Xun
- Added 'updated_at' field to the chat selection query to include the last modified timestamp in chat responses. - Updated the ordering of chat results to prioritize 'updated_at' over 'created_at', improving the relevance of displayed chats. - Modified the handling of chat creation timestamps to fall back on 'created_at' if 'updated_at' is not available, ensuring consistent date representation. - Implemented an update mechanism for the 'updated_at' field when saving chat history, enhancing data integrity and tracking. These changes improve the chat management capabilities of the Neo API assistant, ensuring more accurate and relevant chat data retrieval.
- Loading branch information