Huggingface.js documentation
Namespace: curl
Namespace: curl
snippets.curl
Variables
curlSnippets
• Const
curlSnippets: Partial
\<Record
\<PipelineType
, (model
: ModelDataMinimal
, accessToken
: string
, provider
: SnippetInferenceProvider
, providerModelId?
: string
, opts?
: Record
\<string
, unknown
>) => InferenceSnippet
[]>>
Defined in
inference/src/snippets/curl.ts:129
Functions
getCurlInferenceSnippet
▸ getCurlInferenceSnippet(model
, accessToken
, provider
, providerModelId?
, opts?
): InferenceSnippet
[]
Parameters
Name | Type |
---|---|
model | ModelDataMinimal |
accessToken | string |
provider | string |
providerModelId? | string |
opts? | Record \<string , unknown > |
Returns
InferenceSnippet
[]
Defined in
inference/src/snippets/curl.ts:167
snippetBasic
▸ snippetBasic(model
, accessToken
, provider
): InferenceSnippet
[]
Parameters
Name | Type |
---|---|
model | ModelDataMinimal |
accessToken | string |
provider | string |
Returns
InferenceSnippet
[]
Defined in
inference/src/snippets/curl.ts:12
snippetFile
▸ snippetFile(model
, accessToken
, provider
): InferenceSnippet
[]
Parameters
Name | Type |
---|---|
model | ModelDataMinimal |
accessToken | string |
provider | string |
Returns
InferenceSnippet
[]
Defined in
inference/src/snippets/curl.ts:110
snippetTextGeneration
▸ snippetTextGeneration(model
, accessToken
, provider
, providerModelId?
, opts?
): InferenceSnippet
[]
Parameters
Name | Type |
---|---|
model | ModelDataMinimal |
accessToken | string |
provider | string |
providerModelId? | string |
opts? | Object |
opts.max_tokens? | unknown |
opts.messages? | ChatCompletionInputMessage [] |
opts.streaming? | boolean |
opts.temperature? | number |
opts.top_p? | number |
Returns
InferenceSnippet
[]
Defined in
inference/src/snippets/curl.ts:33
snippetZeroShotClassification
▸ snippetZeroShotClassification(model
, accessToken
, provider
): InferenceSnippet
[]
Parameters
Name | Type |
---|---|
model | ModelDataMinimal |
accessToken | string |
provider | string |
Returns
InferenceSnippet
[]
Defined in
inference/src/snippets/curl.ts:90
< > Update on GitHub