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

TextCompletionChunk.md

66 lines733 Bytes

1---
2id: TextCompletionChunk
3title: TextCompletionChunk
4---
5​
6Defined in: packages/ai/src/types.ts:2129
7​
8## Properties
9​
10### content
11​
12```ts
13content: string;
14```
15​
16Defined in: packages/ai/src/types.ts:2132
17​
18***
19​
20### finishReason?
21​
22```ts
23optional finishReason?: "length" | "stop" | "content_filter" | null;
24```
25​
26Defined in: packages/ai/src/types.ts:2134
27​
28***
29​
30### id
31​
32```ts
33id: string;
34```
35​
36Defined in: packages/ai/src/types.ts:2130
37​
38***
39​
40### model
41​
42```ts
43model: string;
44```
45​
46Defined in: packages/ai/src/types.ts:2131
47​
48***
49​
50### role?
51​
52```ts
53optional role?: "assistant";
54```
55​
56Defined in: packages/ai/src/types.ts:2133
57​
58***
59​
60### usage?
61​
62```ts
63optional usage?: TokenUsage<ProviderUsageDetails>;
64```
65​
66Defined in: packages/ai/src/types.ts:2135