Huggingface.js documentation
Giao diện: OAuthResult
@huggingface/inference
Sử dụng Inference ClientTham khảo API
Các lớp
HfInferenceInferenceClientInferenceClientEndpointInferenceClientErrorInferenceClientHubApiErrorInferenceClientInputErrorInferenceClientProviderApiErrorInferenceClientProviderOutputErrorInferenceClientRoutingError
Giao diện
AudioToAudioOutputAudioToAudioOutputElemBaseArgsBodyParamsHeaderParamsInferenceProviderMappingEntryLoggerTùy chọnTextGenerationInputTextGenerationOutputTextGenerationStreamBestOfSequenceTextGenerationStreamDetailsTextGenerationStreamOutputTextGenerationStreamPrefillTokenTextGenerationStreamTokenUrlParams
Các module
@huggingface/hub
Tương tác với HubTham khảo API
Các lớp
Giao diện
AuthInfoCachedFileInfoCachedRepoInfoCachedRevisionInfoCommitCopyFileCommitDataCommitDeletedEntryCommitEditFileCommitEditFileParamsCommitFileCommitInfoCommitOutputCopyDestinationCopyFilesEntryCopyProgressEventCopySourceThông tin xác thựcDatasetEntryFileDownloadInfoOutputHFCacheInfoJobVolumeLfsPathInfoListFileEntryMlxQuantizationConfigModelConfigModelDerivedFieldsModelEntryOAuthResultParallelDownloadOptionsPathInfoQuantizationConfigRangeEditCacheEntryRepoIdSafetensorsIndexJsonSafetensorsShardFileInfoSecurityFileStatusSpaceEntrySpaceResourceConfigSpaceResourceRequirementSpaceRuntimeTensorInfoUserInfoWhoAmIAppWhoAmIOrgWhoAmIUserXetFileInfoXetReadToken
@huggingface/mcp-client
@huggingface/tiny-agents
@huggingface/space-header
@huggingface/gguf
@huggingface/lerobot
@huggingface/usd-web-viewer
Giao diện: OAuthResult
Thuộc tính
accessToken
• accessToken: string
Được định nghĩa trong
packages/hub/src/lib/oauth-handle-redirect.ts:104
accessTokenExpiresAt
• accessTokenExpiresAt: Date
Được định nghĩa trong
packages/hub/src/lib/oauth-handle-redirect.ts:105
phạm vi
• scope: string
Phạm vi được cấp
Được định nghĩa trong
packages/hub/src/lib/oauth-handle-redirect.ts:114
state
• Optional state: string
Trạng thái được truyền đến nhà cung cấp OAuth trong yêu cầu ban đầu gửi đến nhà cung cấp OAuth.
Được định nghĩa trong
packages/hub/src/lib/oauth-handle-redirect.ts:110
userInfo
• userInfo: UserInfo
Được định nghĩa trong
packages/hub/src/lib/oauth-handle-redirect.ts:106
Update on GitHub