When enabled, details about the generation
▪ [property: string
]: unknown
• Optional
best_of_sequences: TextGenerationOutputSequenceDetails
[]
Details about additional sequences when best_of is provided
inference/src/tasks/nlp/textGeneration.ts:119
• finish_reason: TextGenerationFinishReason
The reason why the generation was stopped.
inference/src/tasks/nlp/textGeneration.ts:123
• generated_tokens: number
The number of generated tokens
inference/src/tasks/nlp/textGeneration.ts:127
• prefill: TextGenerationPrefillToken
[]
inference/src/tasks/nlp/textGeneration.ts:128
• Optional
seed: number
The random seed used for generation
inference/src/tasks/nlp/textGeneration.ts:132
• tokens: TextGenerationOutputToken
[]
The generated tokens and associated details
inference/src/tasks/nlp/textGeneration.ts:136
• Optional
top_tokens: TextGenerationOutputToken
[][]
Most likely tokens