Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store the incoming text at /converse endpoint in the form of ChatMessage object #25

Closed
skks1212 opened this issue Apr 9, 2023 · 0 comments
Assignees
Labels

Comments

@skks1212
Copy link
Member

skks1212 commented Apr 9, 2023

Store the incoming text at /converse endpoint to create a new ChatMessage object (model is already defined). Now create a new serializer called ChatDetailSerializer that gets used only while retrieving a chat (through /chats/<external_id>) that adds a chats field which is a reference to ChatMessageSerializer (which you also have to create) that is a model serializer for ChatMessage.

Now once this is done, update the /converse endpoint such that the previous messages also get chained through langchain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants