Huggingface.js documentation
インターフェース: オプション
@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
インターフェース: オプション
プロパティ
請求先
• 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 の場合は認証情報が送信されません。
定義場所
エラー時の再試行
• Optional retry_on_error: boolean
(デフォルト: true)Boolean型。リクエストが503エラーを返した場合、同じパラメータでリクエストが再試行されます。
定義場所
signal
• Optional signal: AbortSignal
リクエストの中断に使用する Abort Controller シグナル。