Huggingface.js documentation

Espace de noms : snippets

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Espace de noms : snippets

Alias de types

InferenceSnippetOptions

Ƭ InferenceSnippetOptions : { accessToken? : string ; billTo? : string ; directRequest? : boolean ; endpointUrl? : string ; inputs? : Record<string, unknown> ; streaming? : boolean } & Record<string, unknown>

Défini dans

inference/src/snippets/getInferenceSnippets.ts:18

Fonctions

getInferenceSnippets

▸ getInferenceSnippets(model, provider, inferenceProviderMapping?, opts?) : InferenceSnippet[]

Paramètres

NomType
modelModelDataMinimal
provider"baseten" | "cerebras" | "cohere" | "deepinfra" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "humain-ai" | "novita" | "nscale" | "openai" | "openrouter" | "ovhcloud" | "publicai" | "replicate" | "scaleway" | "together" | "wavespeed" | "zai-org" | "auto"
inferenceProviderMapping?InferenceProviderMappingEntry
opts?Record<string, unknown>

Retourne

InferenceSnippet[]

Défini dans

inference/src/snippets/getInferenceSnippets.ts:419

Update on GitHub