Huggingface.js documentation
Интерфейс: TextGenerationStreamPrefillToken
@huggingface/inference
Использовать Inference ClientСправочник API
Классы
HfInferenceInferenceClientInferenceClientEndpointInferenceClientErrorInferenceClientHubApiErrorInferenceClientInputErrorInferenceClientProviderApiErrorInferenceClientProviderOutputErrorInferenceClientRoutingError
Интерфейсы
AudioToAudioOutputAudioToAudioOutputElemBaseArgsBodyParamsHeaderParamsInferenceProviderMappingEntryLoggerПараметрыTextGenerationInputTextGenerationOutputTextGenerationStreamBestOfSequenceTextGenerationStreamDetailsTextGenerationStreamOutputTextGenerationStreamPrefillTokenTextGenerationStreamTokenUrlParams
Модули
@huggingface/hub
Взаимодействие с HubСправочник API
Классы
Интерфейсы
AuthInfoCachedFileInfoCachedRepoInfoCachedRevisionInfoCommitCopyFileCommitDataCommitDeletedEntryCommitEditFileCommitEditFileParamsCommitFileCommitInfoCommitOutputCopyDestinationCopyFilesEntryCopyProgressEventCopySourceУчётные данныеDatasetEntryFileDownloadInfoOutputHFCacheInfoJobVolumeLfsPathInfoListFileEntryMlxQuantizationConfigModelConfigModelDerivedFieldsModelEntryOAuthResultParallelDownloadOptionsPathInfoQuantizationConfigRangeEditCacheEntryRepoIdSafetensorsIndexJsonSafetensorsShardFileInfoSecurityFileStatusSpaceEntrySpaceResourceConfigSpaceResourceRequirementSpaceRuntimeTensorInfoUserInfoWhoAmIAppWhoAmIOrgWhoAmIUserXetFileInfoXetReadToken
@huggingface/mcp-client
@huggingface/tiny-agents
@huggingface/space-header
@huggingface/gguf
@huggingface/lerobot
@huggingface/usd-web-viewer
Интерфейс: TextGenerationStreamPrefillToken
Свойства
id
• id: number
Идентификатор токена из токенизатора модели
Определено в
inference/src/tasks/nlp/textGenerationStream.ts:23
logprob
• Optional logprob: number
Logprob Необязательный, так как logprob первого токена не может быть вычислен
Определено в
inference/src/tasks/nlp/textGenerationStream.ts:30
текст
• текст: string
Текст токена
Определено в
inference/src/tasks/nlp/textGenerationStream.ts:25
Update on GitHub