Commit or cancel a chat stream
const url = 'https://example.com/v1/adapters/llm/chat/stream/example/commit';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/adapters/llm/chat/stream/example/commit \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Chat stream id.
Stream lifecycle action.
Responses
Section titled “Responses”Action accepted
Invalid request body or parameters
Canonical structured error emitted by the chat completion, chat stream and
embeddings handlers (the shared errorResponse helper). code is an
application error code (0 when unset); status mirrors the HTTP status.
object
Examplegenerated
{ "name": "example", "message": "example", "code": 1, "status": 1}Unauthorized
Forbidden
Resource does not exist
Canonical structured error emitted by the chat completion, chat stream and
embeddings handlers (the shared errorResponse helper). code is an
application error code (0 when unset); status mirrors the HTTP status.
object
Examplegenerated
{ "name": "example", "message": "example", "code": 1, "status": 1}Internal server error
Canonical structured error emitted by the chat completion, chat stream and
embeddings handlers (the shared errorResponse helper). code is an
application error code (0 when unset); status mirrors the HTTP status.
object
Examplegenerated
{ "name": "example", "message": "example", "code": 1, "status": 1}Bad gateway (upstream adapter error)