Post Chat Message
POST
/api/chats/{id}/messagesPost a new chat message to a chat which then responds with a stream of JSONs containing deltas which build the response message.
Request
Path Params
id
string
required
Body Params application/json
content
string
required
Content of the chat message.
Example
{
"content": "string"
}
Request samples
Responses
OK(200)
Record Not Found(404)
HTTP Code: 200
Content Type : Rawtext/plain
Example
{"type":"delta","delta":"Sure"}
{"type":"delta","delta":"!"}
{"type":"delta","delta":" Here"}
{"type":"delta","delta":"'s"}
{"type":"delta","delta":" a"}
{"type":"delta","delta":" sample"}
{"type":"delta","delta":" question"}
{"type":"delta","delta":":\n\n"}
{"type":"delta","delta":"\"What"}
{"type":"delta","delta":" are"}
{"type":"delta","delta":" the"}
{"type":"delta","delta":" key"}
{"type":"delta","delta":" steps"}
{"type":"delta","delta":" to"}
{"type":"delta","delta":" starting"}
{"type":"delta","delta":" a"}
{"type":"delta","delta":" small"}
{"type":"delta","delta":" business"}
{"type":"delta","delta":"?\""}
Last modified: a year ago