Skip to content

HuggingFaceRequest

Defined in: backend/src/providers/huggingface.ts:37

Hugging Face API request.

inputs: string | { generated_responses?: string[]; past_user_inputs?: string[]; text: string; }

Defined in: backend/src/providers/huggingface.ts:38


optional options: object

Defined in: backend/src/providers/huggingface.ts:54

optional use_cache: boolean

optional wait_for_model: boolean


optional parameters: object

Defined in: backend/src/providers/huggingface.ts:45

optional do_sample: boolean

optional max_new_tokens: number

optional repetition_penalty: number

optional return_full_text: boolean

optional temperature: number

optional top_k: number

optional top_p: number