Cancel Chat
Conversations
Stop a stream
Cancel an in-flight chat reply
POST
Cancel Chat
Cancels an in-flight reply. The open chat stream ends with a
done event carrying cancelled: true, and the partial reply that already streamed is kept.
A Redis flag signals the streaming worker, so cancellation works even when this request lands on a different replica than the one holding the open stream. Closing the SSE connection — an AbortController on the client — also stops generation.