Skip to main content

Type Alias: GatewayChatCompletionChunk

type GatewayChatCompletionChunk = GatewayInferenceCreateChatCompletionStreamResponse;

Defined in: src/ai-gateway/inference-client.ts:60

One validated streaming delta, including terminal usage-only chunks.

Example​

`for await (const chunk of stream) console.log(chunk.choices);`