Huggingface.js documentation
인터페이스: 옵션
@huggingface/inference
Inference Client 사용API 참조
클래스
HfInferenceInferenceClientInferenceClientEndpointInferenceClientErrorInferenceClientHubApiErrorInferenceClientInputErrorInferenceClientProviderApiErrorInferenceClientProviderOutputErrorInferenceClientRoutingError
인터페이스
AudioToAudioOutputAudioToAudioOutputElemBaseArgsBodyParamsHeaderParamsInferenceProviderMappingEntry로거옵션TextGenerationInputTextGenerationOutputTextGenerationStreamBestOfSequenceTextGenerationStreamDetailsTextGenerationStreamOutputTextGenerationStreamPrefillTokenTextGenerationStreamTokenUrlParams
모듈
@huggingface/hub
Hub와 상호작용하기API 참고
클래스
인터페이스
AuthInfoCachedFileInfoCachedRepoInfoCachedRevisionInfoCommitCopyFileCommitDataCommitDeletedEntryCommitEditFileCommitEditFileParamsCommitFileCommitInfoCommitOutputCopyDestinationCopyFilesEntryCopyProgressEventCopySource자격 증명DatasetEntryFileDownloadInfoOutputHFCacheInfoJobVolumeLfsPathInfoListFileEntryMlxQuantizationConfigModelConfigModelDerivedFieldsModelEntryOAuthResultParallelDownloadOptionsPathInfoQuantizationConfigRangeEditCacheEntryRepoIdSafetensorsIndexJsonSafetensorsShardFileInfoSecurityFileStatusSpaceEntrySpaceResourceConfigSpaceResourceRequirementSpaceRuntimeTensorInfoUserInfoWhoAmIAppWhoAmIOrgWhoAmIUserXetFileInfoXetReadToken
@huggingface/mcp-client
@huggingface/tiny-agents
@huggingface/space-header
@huggingface/gguf
@huggingface/lerobot
@huggingface/usd-web-viewer
인터페이스: 옵션
속성
billTo
• Optional billTo: string
요청에 사용할 청구 계정입니다.
기본적으로 요청은 사용자의 계정으로 청구됩니다. 요청을 청구할 수 있는 조직은 사용자가 멤버로 가입되어 있고 Enterprise Hub에 구독한 조직만 해당됩니다.
정의 위치
fetch
• Optional fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>
기본 함수 대신 사용할 커스텀 fetch 함수입니다. 예를 들어 프록시를 사용하거나 헤더를 수정하는 데 사용할 수 있습니다.
타입 선언
▸ (input, init?): Promise<Response>
매개변수
| 이름 | 유형 |
|---|---|
input | RequestInfo | URL |
init? | RequestInit |
반환
Promise<Response>
정의 위치
includeCredentials
• Optional includeCredentials: string | boolean
(기본값: “same-origin”). String | Boolean. 요청에 사용할 자격 증명입니다. 문자열인 경우 그대로 전달됩니다. 불리언인 경우, true는 “include”를 의미하고 false는 자격 증명을 전혀 보내지 않습니다.
정의 위치
retry _ on _ error
• Optional retry_on_error: boolean
(기본값: true) Boolean. 요청이 503 오류를 반환하면 동일한 매개변수로 요청이 재시도됩니다.
정의 위치
signal
• Optional signal: AbortSignal
요청 중단을 위해 사용할 Abort Controller signal입니다.