Huggingface.js documentation
接口:SpaceRuntime
@huggingface/inference
使用 Inference ClientAPI 参考
类
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
接口:SpaceRuntime
属性
errorMessage
• Optional errorMessage:string
定义于
packages/hub/src/types/public.ts:108
gcTimeout
• Optional gcTimeout: null | number
秒内
定义于
packages/hub/src/types/public.ts:118
硬件
• Optional 硬件:Object
类型声明
| 名称 | 类型 |
|---|---|
current | null | SpaceHardwareFlavor |
currentPrettyName? | string |
requested | null | SpaceHardwareFlavor |
requestedPrettyName? | string |
定义于
packages/hub/src/types/public.ts:109
资源
• Optional resources: SpaceResourceConfig
调用 /spaces 时,这些属性仅在 ?full=true 时才会获取
定义于
packages/hub/src/types/public.ts:116
sdk
• Optional sdk:SpaceSdk
定义于
packages/hub/src/types/public.ts:106
sdkVersion
• Optional sdkVersion:string
定义于
packages/hub/src/types/public.ts:107
stage
• stage:SpaceStage
定义于
packages/hub/src/types/public.ts:105
Update on GitHub