Huggingface.js 文件
名稱空間:snippets
加入 Hugging Face 社群
並獲得增強的文件體驗
開始使用
名稱空間:snippets
類型別名
InferenceSnippetOptions
Ƭ InferenceSnippetOptions: { accessToken?
: string
; billTo?
: string
; directRequest?
: boolean
; endpointUrl?
: string
; inputs?
: Record
\<string
, unknown
> ; streaming?
: boolean
} & Record
\<string
, unknown
>
定義於
inference/src/snippets/getInferenceSnippets.ts:18
函式
getInferenceSnippets
▸ getInferenceSnippets(model
, provider
, inferenceProviderMapping?
, opts?
): InferenceSnippet
[]
引數
名稱 | 型別 |
---|---|
模型 | ModelDataMinimal |
提供者 | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
inferenceProviderMapping? | InferenceProviderMappingEntry |
opts? | Record \<string , unknown > |
返回
InferenceSnippet
[]
定義於
inference/src/snippets/getInferenceSnippets.ts:411
< > 在 GitHub 上更新