Huggingface.js documentation
Interface : AuthInfo
@huggingface/inference
Utiliser le client d'inférenceRéférence de l'API
Classes
HfInferenceInferenceClientInferenceClientEndpointInferenceClientErrorInferenceClientHubApiErrorInferenceClientInputErrorInferenceClientProviderApiErrorInferenceClientProviderOutputErrorInferenceClientRoutingError
Interfaces
AudioToAudioOutputAudioToAudioOutputElemBaseArgsBodyParamsHeaderParamsInferenceProviderMappingEntryLoggerOptionsTextGenerationInputTextGenerationOutputTextGenerationStreamBestOfSequenceTextGenerationStreamDetailsTextGenerationStreamOutputTextGenerationStreamPrefillTokenTextGenerationStreamTokenUrlParams
Modules
@huggingface/hub
Interagir avec le HubRéférence de l'API
Classes
Interfaces
AuthInfoCachedFileInfoCachedRepoInfoCachedRevisionInfoCommitCopyFileCommitDataCommitDeletedEntryCommitEditFileCommitEditFileParamsCommitFileCommitInfoCommitOutputCopyDestinationCopyFilesEntryCopyProgressEventCopySourceIdentifiantsDatasetEntryFileDownloadInfoOutputHFCacheInfoJobVolumeLfsPathInfoListFileEntryMlxQuantizationConfigModelConfigModelDerivedFieldsModelEntryOAuthResultParallelDownloadOptionsPathInfoQuantizationConfigRangeEditCacheEntryRepoIdSafetensorsIndexJsonSafetensorsShardFileInfoSecurityFileStatusSpaceEntrySpaceResourceConfigSpaceResourceRequirementSpaceRuntimeTensorInfoUserInfoWhoAmIAppWhoAmIOrgWhoAmIUserXetFileInfoXetReadToken
@huggingface/mcp-client
@huggingface/tiny-agents
@huggingface/space-header
@huggingface/gguf
@huggingface/lerobot
@huggingface/usd-web-viewer
Interface : AuthInfo
Propriétés
accessToken
• Optional accessToken : Object
Déclaration de type
| Nom | Type |
|---|---|
createdAt | Date |
displayName | string |
role | AccessTokenRole |
Défini dans
packages/hub/src/lib/who-am-i.ts:54
expiresAt
• Optional expiresAt : Date
Défini dans
packages/hub/src/lib/who-am-i.ts:59
type
• type : AuthType
Défini dans
packages/hub/src/lib/who-am-i.ts:53
Update on GitHub