-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Groups conversations based on the user's messages.
Closes: #419 Before we could use the `chat_id` at the output messages as means to group the messages into conversations. This logic is not working anymore. The new logic takes into account the user messages provided as input to the LLM to map the messages into conversations. Usually LLMs receive all last user messages. Example: ``` req1 = {messages:[{"role": "user", "content": "hello"}]} req2 = {messages:[{"role": "user", "content": "hello"}, {"role": "user", "content": "how are you?}]} ``` In this last example, `req1` and `req2` should be mapped together to form a conversation
- Loading branch information
1 parent
ff4a3a7
commit 78c2f2c
Showing
3 changed files
with
400 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.