AI
Stop the AI turn running in a conversation
Stops generation for a chat session. With server-side chat persistence enabled the browser no longer holds the connection to the agent, so disconnecting does not stop the turn — this does, and what was generated up to that point stays saved.
post/api/{org_id}/ai/chats/{session_id}/cancel
Request
- Base URLhttps://api.openobserve.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
org_idstring required
Organization name
session_idstring required
Chat session ID
Request body
object required
Response
Cancellation forwarded
object required
Changes
No recorded changes to this operation across all 1 revision of this API.