Huggingface.js documentation
Интерфейс: TextGenerationInput
@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
Интерфейс: TextGenerationInput
Вход для генерации текста.
Сгенерировано автоматически из спецификаций TGI. Подробнее см. https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/scripts/inference-tgi-import.ts.
Индексируемый
▪ [свойство: string]: unknown
Свойства
входные данные
• inputs: string
Определено в
tasks/dist/esm/tasks/text-generation/inference.d.ts:14
параметры
• Optional параметры: TextGenerationInputGenerateParameters
Определено в
tasks/dist/esm/tasks/text-generation/inference.d.ts:15
stream
• Optional stream: boolean
Определено в
tasks/dist/esm/tasks/text-generation/inference.d.ts:16
Update on GitHub