Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 3.82 KB

chatcompletionstreamoptions.md

File metadata and controls

18 lines (11 loc) · 3.82 KB

ChatCompletionStreamOptions

Options for streaming response. Only set this when you set stream: true.

Example Usage

import { ChatCompletionStreamOptions } from "argot-open-ai/models/components";

let value: ChatCompletionStreamOptions = {};

Fields

Field Type Required Description
includeUsage boolean If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.