This pull request adds a new API demo for a multi-round chat feature to the moss project.
The new demo allows users to engage in multiple rounds of conversation with a chatbot and provides a unique uid for each round. The uid is used to keep track of the conversation history for each round.
To use the multi-round chat feature, users can send a POST request:
Changes Made
Added a new moss_api_demo.py file to the the moss project.
Documentation
Updated the moss repository README to include a note about the new api demo.
This pull request adds a new API demo for a multi-round chat feature to the moss project.
The new demo allows users to engage in multiple rounds of conversation with a chatbot and provides a unique uid for each round. The uid is used to keep track of the conversation history for each round.
To use the multi-round chat feature, users can send a POST request:
The chatbot will respond with a JSON object containing the conversation history for the current round:
Users can fill the uid if you want to have a multi-round chat with moss:
Changes Made Added a new moss_api_demo.py file to the the moss project. Documentation Updated the moss repository README to include a note about the new api demo.