#
Interface: TextGenerationStreamBestOfSequence

##
Properties

###
finish _ reason

• finish_reason: `TextGenerationStreamFinishReason`

Generation finish reason

####
Defined in

inference/src/tasks/nlp/textGenerationStream.ts:37

###
generated _ text

• generated_text: `string`

Generated text

####
Defined in

inference/src/tasks/nlp/textGenerationStream.ts:35

###
generated _ tokens

• generated_tokens: `number`

Number of generated tokens

####
Defined in

inference/src/tasks/nlp/textGenerationStream.ts:39

###
prefill

• prefill: `TextGenerationStreamPrefillToken`[]

Prompt tokens

####
Defined in

inference/src/tasks/nlp/textGenerationStream.ts:43

###
seed

• `Optional` seed: `number`

Sampling seed if sampling was activated

####
Defined in

inference/src/tasks/nlp/textGenerationStream.ts:41

###
tokens

• tokens: `TextGenerationStreamToken`[]

Generated tokens

####
Defined in

inference/src/tasks/nlp/textGenerationStream.ts:45

< > Update on GitHub