Buckets:
hf-doc-build/doc-dev / huggingface.js /pr_2407 /en /inference /interfaces /TextGenerationStreamDetails.md
| # Interface: TextGenerationStreamDetails | |
| ## Properties | |
| ### best\_of\_sequences | |
| • `Optional` **best\_of\_sequences**: [`TextGenerationStreamBestOfSequence`](TextGenerationStreamBestOfSequence)[] | |
| Additional sequences when using the `best_of` parameter | |
| #### Defined in[[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) | |
| Generation finish reason | |
| #### Defined in[[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) | |
| ___ | |
| ### generated\_tokens | |
| • **generated\_tokens**: `number` | |
| Number of generated tokens | |
| #### Defined in[[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)[] | |
| Prompt tokens | |
| #### Defined in[[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 | |
| • `Optional` **seed**: `number` | |
| Sampling seed if sampling was activated | |
| #### Defined in[[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)[] | |
| #### Defined in[[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) | |
Xet Storage Details
- Size:
- 2.1 kB
- Xet hash:
- 153d417faa732ae1a9dd02679ca5b5fdc9e95bac187cd9dc93e59139813737a5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.