#
Namespace: snippets

##
Type Aliases

###
InferenceSnippetOptions

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

####
Defined in

inference/src/snippets/getInferenceSnippets.ts:18

##
Functions

###
getInferenceSnippets

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

####
Parameters

Name | Type
--- | ---
`model` | `ModelDataMinimal`
`provider` | `"baseten"` | `"black-forest-labs"` | `"cerebras"` | `"clarifai"` | `"cohere"` | `"fal-ai"` | `"featherless-ai"` | `"fireworks-ai"` | `"groq"` | `"hf-inference"` | `"hyperbolic"` | `"nebius"` | `"novita"` | `"nscale"` | `"openai"` | `"ovhcloud"` | `"publicai"` | `"replicate"` | `"sambanova"` | `"scaleway"` | `"together"` | `"wavespeed-ai"` | `"zai-org"` | `"auto"`
`inferenceProviderMapping?` | `InferenceProviderMappingEntry`
`opts?` | `Record`\<`string`, `unknown`>

####
Returns

`InferenceSnippet`[]

####
Defined in

inference/src/snippets/getInferenceSnippets.ts:412

Update on GitHub