Huggingface.js documentation
Arayüz: TextGenerationStreamPrefillToken
@huggingface/inference
Inference Client KullanAPI referansı
Sınıflar
HfInferenceInferenceClientInferenceClientEndpointInferenceClientErrorInferenceClientHubApiErrorInferenceClientInputErrorInferenceClientProviderApiErrorInferenceClientProviderOutputErrorInferenceClientRoutingError
Arayüzler
AudioToAudioOutputAudioToAudioOutputElemBaseArgsBodyParamsHeaderParamsInferenceProviderMappingEntryLoggerSeçeneklerTextGenerationInputTextGenerationOutputTextGenerationStreamBestOfSequenceTextGenerationStreamDetailsTextGenerationStreamOutputTextGenerationStreamPrefillTokenTextGenerationStreamTokenUrlParams
Modüller
@huggingface/hub
Hub ile etkileşime girinAPI Referansı
Sınıflar
Arayüzler
AuthInfoCachedFileInfoCachedRepoInfoCachedRevisionInfoCommitCopyFileCommitDataCommitDeletedEntryCommitEditFileCommitEditFileParamsCommitFileCommitInfoCommitOutputCopyDestinationCopyFilesEntryCopyProgressEventCopySourceKimlik BilgileriDatasetEntryFileDownloadInfoOutputHFCacheInfoJobVolumeLfsPathInfoListFileEntryMlxQuantizationConfigModelConfigModelDerivedFieldsModelEntryOAuthResultParallelDownloadOptionsPathInfoQuantizationConfigRangeEditCacheEntryRepoIdSafetensorsIndexJsonSafetensorsShardFileInfoSecurityFileStatusSpaceEntrySpaceResourceConfigSpaceResourceRequirementSpaceRuntimeTensorInfoUserInfoWhoAmIAppWhoAmIOrgWhoAmIUserXetFileInfoXetReadToken
@huggingface/mcp-client
@huggingface/tiny-agents
@huggingface/space-header
@huggingface/gguf
@huggingface/lerobot
@huggingface/usd-web-viewer
Arayüz: TextGenerationStreamPrefillToken
Özellikler
id
• id: number
Modelden gelen Token ID
Tanımlandığı yer
inference/src/tasks/nlp/textGenerationStream.ts:23
logprob
• Optional logprob: number
Logprob İlk token'ın logprob'u hesaplanamadığı için isteğe bağlıdır
Tanımlandığı yer
inference/src/tasks/nlp/textGenerationStream.ts:30
metin
• metin: string
Token metni
Tanımlandığı yer
inference/src/tasks/nlp/textGenerationStream.ts:25
Update on GitHub