Namespace: python

snippets.python

Functions

getPythonInferenceSnippet

getPythonInferenceSnippet(model, accessToken, provider, providerModelId?, opts?): InferenceSnippet[]

Parameters

Name Type
model ModelDataMinimal
accessToken string
provider "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "fireworks-ai" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "openai" | "replicate" | "sambanova" | "together"
providerModelId? string
opts? Record\<string, unknown>

Returns

InferenceSnippet[]

Defined in

inference/src/snippets/python.ts:233

< > Update on GitHub