Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Class References
Function References
Interface References
Type Alias References
Variable References
Interface References

TextCompletionChunk

Interface: TextCompletionChunk

Defined in: packages/ai/src/types.ts:1435

Properties

content

ts
content: string;
content: string;

Defined in: packages/ai/src/types.ts:1438


finishReason?

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

Defined in: packages/ai/src/types.ts:1440


id

ts
id: string;
id: string;

Defined in: packages/ai/src/types.ts:1436


model

ts
model: string;
model: string;

Defined in: packages/ai/src/types.ts:1437


role?

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

Defined in: packages/ai/src/types.ts:1439


usage?

ts
optional usage: TokenUsage<ProviderUsageDetails>;
optional usage: TokenUsage<ProviderUsageDetails>;

Defined in: packages/ai/src/types.ts:1441