Stop Chat Message Generation
Available for: Chatflow, New Agent, Chatbot, Agent apps.
Stops a chat message generation task. Only supported in streaming mode.
Authorizations
API Key authentication. For all API requests, include your API Key in the Authorization HTTP Header, prefixed with Bearer. Example: Authorization: Bearer {API_KEY}. Strongly recommend storing your API Key on the server-side, not shared or stored on the client-side, to avoid possible API-Key leakage that can lead to serious consequences. Requests with a missing or invalid API key fail with HTTP 401 and error code unauthorized.
Path Parameters
Task ID, can be obtained from the streaming chunk return of the Send Chat Message API.
Body
User identifier. Must match the user passed when the message was sent: if it differs, the stop silently does nothing and the response still returns success.
Response
Operation successful.
Operation result. Always success.