Huggingface.js documentation
インターフェース: CommitCopyFile
@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
インターフェース: CommitCopyFile
ソースのリポジトリ/バケットから宛先のリポジトリへのファイルのサーバーサイドコピー。
宛先リポジトリがバケットである場合にのみサポートされます。ソースファイルはxetバックエンドである必要があるため、呼び出し元はソースパスをsourceXetHashに解決する責任があります(通常はpathsInfoまたはlistFilesを通じて行います)。
xet 以外のソースファイルの解決を実行し、処理するより高レベルのヘルパーについては、copyFile、copyFiles、copyFolderを参照してください。
プロパティ
操作
• operation: "copy"
定義場所
packages/hub/src/lib/commit.ts:117
path
• path: string
定義場所
packages/hub/src/lib/commit.ts:118
sourceRepo
• sourceRepo: RepoDesignation
定義場所
packages/hub/src/lib/commit.ts:120
sourceXetHash
• sourceXetHash: string
定義場所
packages/hub/src/lib/commit.ts:119
Update on GitHub