Huggingface.js documentation

인터페이스: 옵션

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

인터페이스: 옵션

속성

billTo

• Optional billTo: string

요청에 사용할 청구 계정입니다.

기본적으로 요청은 사용자의 계정으로 청구됩니다. 요청을 청구할 수 있는 조직은 사용자가 멤버로 가입되어 있고 Enterprise Hub에 구독한 조직만 해당됩니다.

정의 위치

inference/src/types.ts:42


fetch

• Optional fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>

기본 함수 대신 사용할 커스텀 fetch 함수입니다. 예를 들어 프록시를 사용하거나 헤더를 수정하는 데 사용할 수 있습니다.

타입 선언

▸ (input, init?): Promise<Response>

매개변수
이름유형
inputRequestInfo | URL
init?RequestInit
반환

Promise<Response>

정의 위치

inference/src/types.ts:25


includeCredentials

• Optional includeCredentials: string | boolean

(기본값: “same-origin”). String | Boolean. 요청에 사용할 자격 증명입니다. 문자열인 경우 그대로 전달됩니다. 불리언인 경우, true는 “include”를 의미하고 false는 자격 증명을 전혀 보내지 않습니다.

정의 위치

inference/src/types.ts:34


retry _ on _ error

• Optional retry_on_error: boolean

(기본값: true) Boolean. 요청이 503 오류를 반환하면 동일한 매개변수로 요청이 재시도됩니다.

정의 위치

inference/src/types.ts:20


signal

• Optional signal: AbortSignal

요청 중단을 위해 사용할 Abort Controller signal입니다.

정의 위치

inference/src/types.ts:29

Update on GitHub