Huggingface.js documentation
الواجهة: CopySource
@huggingface/inference
استخدام عميل الاستدلالمرجع الواجهة البرمجية
الفئات
HfInferenceInferenceClientInferenceClientEndpointInferenceClientErrorInferenceClientHubApiErrorInferenceClientInputErrorInferenceClientProviderApiErrorInferenceClientProviderOutputErrorInferenceClientRoutingError
الواجهات
AudioToAudioOutputAudioToAudioOutputElemBaseArgsBodyParamsHeaderParamsInferenceProviderMappingEntryLoggerخياراتTextGenerationInputTextGenerationOutputTextGenerationStreamBestOfSequenceTextGenerationStreamDetailsTextGenerationStreamOutputTextGenerationStreamPrefillTokenTextGenerationStreamTokenUrlParams
وحدات
@huggingface/hub
التفاعل مع Hubمرجع الواجهة البرمجية
الفئات
الواجهات
AuthInfoCachedFileInfoCachedRepoInfoCachedRevisionInfoCommitCopyFileCommitDataCommitDeletedEntryCommitEditFileCommitEditFileParamsCommitFileCommitInfoCommitOutputCopyDestinationCopyFilesEntryCopyProgressEventCopySourceبيانات الاعتمادDatasetEntryFileDownloadInfoOutputHFCacheInfoJobVolumeLfsPathInfoListFileEntryMlxQuantizationConfigModelConfigModelDerivedFieldsModelEntryOAuthResultParallelDownloadOptionsPathInfoQuantizationConfigRangeEditCacheEntryRepoIdSafetensorsIndexJsonSafetensorsShardFileInfoSecurityFileStatusSpaceEntrySpaceResourceConfigSpaceResourceRequirementSpaceRuntimeTensorInfoUserInfoWhoAmIAppWhoAmIOrgWhoAmIUserXetFileInfoXetReadToken
@huggingface/mcp-client
@huggingface/tiny-agents
@huggingface/space-header
@huggingface/gguf
@huggingface/lerobot
@huggingface/usd-web-viewer
الواجهة: CopySource
موقع المصدر للملف في copyFile / copyFiles / copyFolder.
الخصائص
path
• path: string
مسار الملف (أو المجلد، في حالة copyFolder) داخل المستودع المصدر. اتركه فارغاً في copyFolder لنسخ المستودع بأكمله.
معرّف في
packages/hub/src/lib/copy-files.ts:44
مستودع
• المستودع: RepoDesignation
معرّف في
packages/hub/src/lib/copy-files.ts:39
مراجعة
• Optional revision: string
مراجعة Git لقراءة المصدر منها. يتم تجاهلها لمصادر الدلاء (buckets).
Default
"main"معرّف في
packages/hub/src/lib/copy-files.ts:50
Update on GitHub