yao/neo/conversation
Max f666070bb3 Add user field support in conversation settings and enhance user ID retrieval in Xun
- Introduced a new UserField in the Setting struct to allow customization of the user ID field name.
- Implemented getUserID method in Xun to retrieve user IDs based on the configured UserField, improving flexibility in user identification.
- Updated multiple methods (UpdateChatTitle, GetChats, GetHistory, SaveHistory, GetRequest, SaveRequest, GetChat) to utilize the new user ID retrieval logic, ensuring consistent handling of user sessions.
- Enhanced error handling for user ID retrieval, ensuring robust feedback in case of issues.
2024-12-17 09:54:57 +08:00
..
mongo.go Add chat detail and mentions handling in Neo API 2024-12-16 17:36:02 +08:00
redis.go Add chat detail and mentions handling in Neo API 2024-12-16 17:36:02 +08:00
types.go Add user field support in conversation settings and enhance user ID retrieval in Xun 2024-12-17 09:54:57 +08:00
weaviate.go Add chat detail and mentions handling in Neo API 2024-12-16 17:36:02 +08:00
xun.go Add user field support in conversation settings and enhance user ID retrieval in Xun 2024-12-17 09:54:57 +08:00
xun_test.go Refactor command handling and conversation management by removing the command package, updating conversation methods to support chat IDs, and enhancing API functionality for chat history and titles. This includes adjustments to the DSL context and conversation settings for improved data handling. 2024-12-12 16:37:59 +08:00