Huggingface.js documentation

Interface: TextGenerationOutputSequenceDetails

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: TextGenerationOutputSequenceDetails

Indexable

▪ [property: string]: unknown

Properties

finish _ reason

finish_reason: TextGenerationFinishReason

Defined in

inference/src/tasks/nlp/textGeneration.ts:145


generated _ text

generated_text: string

The generated text

Defined in

inference/src/tasks/nlp/textGeneration.ts:149


generated _ tokens

generated_tokens: number

The number of generated tokens

Defined in

inference/src/tasks/nlp/textGeneration.ts:153


prefill

prefill: TextGenerationPrefillToken[]

Defined in

inference/src/tasks/nlp/textGeneration.ts:154


seed

Optional seed: number

The random seed used for generation

Defined in

inference/src/tasks/nlp/textGeneration.ts:158


tokens

tokens: TextGenerationOutputToken[]

The generated tokens and associated details

Defined in

inference/src/tasks/nlp/textGeneration.ts:162


top _ tokens

Optional top_tokens: TextGenerationOutputToken[][]

Most likely tokens

Defined in

inference/src/tasks/nlp/textGeneration.ts:166