Huggingface.js documentation

Interface: ProviderConfig

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: ProviderConfig

Properties

baseUrl

baseUrl: string

Defined in

inference/src/types.ts:95


makeBody

makeBody: (params: BodyParams) => Record\<string, unknown>

Type declaration

▸ (params): Record\<string, unknown>

Parameters
Name Type
params BodyParams
Returns

Record\<string, unknown>

Defined in

inference/src/types.ts:96


makeHeaders

makeHeaders: (params: HeaderParams) => Record\<string, string>

Type declaration

▸ (params): Record\<string, string>

Parameters
Name Type
params HeaderParams
Returns

Record\<string, string>

Defined in

inference/src/types.ts:97


makeUrl

makeUrl: (params: UrlParams) => string

Type declaration

▸ (params): string

Parameters
Name Type
params UrlParams
Returns

string

Defined in

inference/src/types.ts:98

< > Update on GitHub