Handle New Chat Message
POST/chat/send-message
This endpoint is both used for all the following purposes:
- Sending a new message in the session
- Regenerating a message in the session (just send the same one again)
- Editing a message (similar to regenerating but sending a different message)
To avoid extra overhead/latency, this assumes (and checks) that previous messages on the path have already been set as latest
Request
Responses
- 200
- 422
Successful Response
Validation Error