v1

latestOpenAPI 3.1.02026-07-13124133217.1 KB

Handle New Chat 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

post/chat/send-message

Request body

chat_session_idinteger required
parent_message_idinteger
messagestring required
prompt_idinteger
search_doc_idsinteger[]
query_overridestring
no_ai_answerboolean

Response

Successful Response

{"stackTrail":"paths:/chat/send-message:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}