Huggingface.js documentation
Giao diện: CommitCopyFile
@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: CommitCopyFile
Bản sao phía máy chủ của một tệp từ kho/bucket nguồn đến kho đích.
Chỉ được hỗ trợ khi kho đích là một bucket. Tệp nguồn phải được hỗ trợ bởi xet, do đó người gọi chịu trách nhiệm giải quyết đường dẫn nguồn thành sourceXetHash của nó (thông thường thông qua pathsInfo hoặc listFiles).
Đối với các hàm trợ giúp cấp cao hơn thực hiện việc phân giải và xử lý các tệp nguồn không phải xet, hãy xem copyFile, copyFiles và copyFolder.
Thuộc tính
thao tác
• thao tác: "copy"
Được định nghĩa trong
packages/hub/src/lib/commit.ts:117
path
• path: string
Được định nghĩa trong
packages/hub/src/lib/commit.ts:118
sourceRepo
• sourceRepo: RepoDesignation
Được định nghĩa trong
packages/hub/src/lib/commit.ts:120
sourceXetHash
• sourceXetHash: string
Được định nghĩa trong
packages/hub/src/lib/commit.ts:119
Update on GitHub