Docs
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Class References
Function References
Interface References
Type Alias References
Variable References
Interface References

TextCompletionChunk

Interface: TextCompletionChunk

Defined in: types.ts:752

Properties

content

ts
content: string;
content: string;

Defined in: types.ts:755


finishReason?

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

Defined in: types.ts:757


id

ts
id: string;
id: string;

Defined in: types.ts:753


model

ts
model: string;
model: string;

Defined in: types.ts:754


role?

ts
optional role: "assistant";
optional role: "assistant";

Defined in: types.ts:756


usage?

ts
optional usage: object;
optional usage: object;

Defined in: types.ts:758

completionTokens

ts
completionTokens: number;
completionTokens: number;

promptTokens

ts
promptTokens: number;
promptTokens: number;

totalTokens

ts
totalTokens: number;
totalTokens: number;