Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

TextCompletionChunk.md

86 lines1.3 KB

Interface: TextCompletionChunk

Defined in: types.ts:731

Properties

content

content: string;

Defined in: types.ts:734


finishReason?

optional finishReason: "length" | "stop" | "content_filter" | null;

Defined in: types.ts:736


id

id: string;

Defined in: types.ts:732


model

model: string;

Defined in: types.ts:733


role?

optional role: "assistant";

Defined in: types.ts:735


usage?

optional usage: object;

Defined in: types.ts:737

completionTokens

completionTokens: number;

promptTokens

promptTokens: number;

totalTokens

totalTokens: number;