# Giao diện: TextGenerationStreamDetails

## Thuộc tính

### best\_of\_sequences

• **best\_of\_sequences** `Optional`: [`TextGenerationStreamBestOfSequence`](TextGenerationStreamBestOfSequence)[]

Các chuỗi bổ sung khi sử dụng tham số `best_of`

#### Được định nghĩa trong[[bestofsequences.defined-in]]

[inference/src/tasks/nlp/textGenerationStream.ts:68](https://github.com/huggingface/huggingface.js/blob/main/packages/inference/src/tasks/nlp/textGenerationStream.ts#L68)

___

### finish\_reason

• **finish\_reason**: [`TextGenerationStreamFinishReason`](../modules#textgenerationstreamfinishreason)

Lý do kết thúc sinh

#### Được định nghĩa trong[[finishreason.defined-in]]

[inference/src/tasks/nlp/textGenerationStream.ts:58](https://github.com/huggingface/huggingface.js/blob/main/packages/inference/src/tasks/nlp/textGenerationStream.ts#L58)

___

### tokens\_được tạo

• **token\_được_tạo**: `number`

Số lượng token được tạo

#### Được định nghĩa trong[[generatedtokens.defined-in]]

[inference/src/tasks/nlp/textGenerationStream.ts:60](https://github.com/huggingface/huggingface.js/blob/main/packages/inference/src/tasks/nlp/textGenerationStream.ts#L60)

___

### prefill

• **prefill**: [`TextGenerationStreamPrefillToken`](TextGenerationStreamPrefillToken)[]

Token nhắc

#### Được định nghĩa trong[[prefill.defined-in]]

[inference/src/tasks/nlp/textGenerationStream.ts:64](https://github.com/huggingface/huggingface.js/blob/main/packages/inference/src/tasks/nlp/textGenerationStream.ts#L64)

___

### seed

• **seed** `Optional`: `number`

Hạt ngẫu nhiên khi lấy mẫu nếu việc lấy mẫu đã được kích hoạt

#### Được định nghĩa trong[[seed.defined-in]]

[inference/src/tasks/nlp/textGenerationStream.ts:62](https://github.com/huggingface/huggingface.js/blob/main/packages/inference/src/tasks/nlp/textGenerationStream.ts#L62)

___

### tokens

• **tokens**: [`TextGenerationStreamToken`](TextGenerationStreamToken)[]

#### Được định nghĩa trong[[tokens.defined-in]]

[inference/src/tasks/nlp/textGenerationStream.ts:66](https://github.com/huggingface/huggingface.js/blob/main/packages/inference/src/tasks/nlp/textGenerationStream.ts#L66)

