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 上更新