Skip to Content
Anuma SDKClientInternalFunctionspostApiV1ChatStreamsByInferenceIdCancel

postApiV1ChatStreamsByInferenceIdCancel

postApiV1ChatStreamsByInferenceIdCancel<ThrowOnError>(options: Options<PostApiV1ChatStreamsByInferenceIdCancelData, ThrowOnError>): RequestResult<PostApiV1ChatStreamsByInferenceIdCancelResponses, PostApiV1ChatStreamsByInferenceIdCancelErrors, ThrowOnError>

Defined in: src/client/sdk.gen.ts:786 

Cancel a buffered chat stream

Cancels an in-flight or detached chat generation identified by its inference ID, from any pod. Writes the first-terminal-wins cancel tombstone, broadcasts a cross-pod cancel, and (on the generating pod) stops generation immediately. Idempotent: a stream already in a terminal state returns {"status":"noop"}, distinguishing an explicit cancel from a mere disconnect. Unknown, expired, or not-owned ids return 410 (no existence oracle). Bearer auth; the caller must own the stream. Credits are untouched — the generation goroutine settles partial usage through its existing path.

Type Parameters

Type ParameterDefault type

ThrowOnError extends boolean

false

Parameters

ParameterType

options

Options<PostApiV1ChatStreamsByInferenceIdCancelData, ThrowOnError>

Returns

RequestResult<PostApiV1ChatStreamsByInferenceIdCancelResponses, PostApiV1ChatStreamsByInferenceIdCancelErrors, ThrowOnError>

Last updated on