Skip to Content

streamCancelPath

streamCancelPath(inferenceId: string): string

Defined in: src/lib/chat/resumeStream.ts:38 

Build the cancel path for a detached stream. A POST here tells the portal to stop generating into the buffer and release it — the billing-safe teardown for “the user pressed stop after we’d already detached”.

Exported so client repos can mock the endpoint in E2E without string drift.

Parameters

ParameterType

inferenceId

string

Returns

string

Last updated on