Chats
Send a message and get a completion
Changed onSends a user message to the clone and returns the assistant's response.
Set stream: true to receive the response as Server-Sent Events (SSE). SSE events: message.delta (incremental text), message.completed (final message), done (stream end).
post/public/v1/clones/{cloneId}/chats/{chatId}/completions
Request
- Base URLhttps://api.cloneforce.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
cloneIdstring required
chatIdstring required
Request body
Response
Completion response (JSON when stream is false, SSE when stream is true)
Changes
- info
endpoint added
- info