Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@huggingface/tasks

Package Overview
Dependencies
Maintainers
4
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huggingface/tasks - npm Package Compare versions

Comparing version 0.13.5 to 0.13.6

12

dist/commonjs/hardware.d.ts

@@ -474,2 +474,14 @@ /**

};
"Apple M4": {
tflops: number;
memory: number[];
};
"Apple M4 Pro": {
tflops: number;
memory: number[];
};
"Apple M4 Max": {
tflops: number;
memory: number[];
};
};

@@ -476,0 +488,0 @@ };

18

dist/commonjs/hardware.js

@@ -436,3 +436,3 @@ "use strict";

"Apple M2 Pro": {
tflops: 13.6,
tflops: 6.8,
memory: [16, 24, 32],

@@ -449,7 +449,7 @@ },

"Apple M3": {
tflops: 2.84,
tflops: 4.1,
memory: [8, 16, 24],
},
"Apple M3 Pro": {
tflops: 14,
tflops: 7.4,
memory: [18, 36],

@@ -461,4 +461,16 @@ },

},
"Apple M4": {
tflops: 4.6,
memory: [16, 24, 32],
},
"Apple M4 Pro": {
tflops: 9.2,
memory: [24, 48],
},
"Apple M4 Max": {
tflops: 18.4,
memory: [36, 48, 64, 128],
},
},
},
};

8

dist/commonjs/snippets/curl.js

@@ -13,3 +13,3 @@ "use strict";

-H 'Content-Type: application/json' \\
-H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}"`,
-H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}'`,
});

@@ -30,3 +30,3 @@ exports.snippetBasic = snippetBasic;

content: `curl 'https://api-inference.huggingface.co/models/${model.id}/v1/chat/completions' \\
-H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}" \\
-H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}' \\
-H 'Content-Type: application/json' \\

@@ -59,3 +59,3 @@ --data '{

-H 'Content-Type: application/json' \\
-H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}"`,
-H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}'`,
});

@@ -67,3 +67,3 @@ exports.snippetZeroShotClassification = snippetZeroShotClassification;

--data-binary '@${(0, inputs_js_1.getModelInputSnippet)(model, true, true)}' \\
-H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}"`,
-H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}'`,
});

@@ -70,0 +70,0 @@ exports.snippetFile = snippetFile;

@@ -14,3 +14,3 @@ "use strict";

headers: {
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
"Content-Type": "application/json",

@@ -146,3 +146,3 @@ },

headers: {
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
"Content-Type": "application/json",

@@ -169,3 +169,3 @@ },

headers: {
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
"Content-Type": "application/json",

@@ -191,3 +191,3 @@ },

headers: {
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
"Content-Type": "application/json",

@@ -233,3 +233,3 @@ },

headers: {
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
"Content-Type": "application/json",

@@ -236,0 +236,0 @@ },

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Audio Classification
*/

@@ -23,4 +23,2 @@ parameters?: AudioClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Audio Classification

@@ -27,0 +25,0 @@ */

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Automatic Speech Recognition
*/

@@ -23,4 +23,2 @@ parameters?: AutomaticSpeechRecognitionParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Automatic Speech Recognition

@@ -41,4 +39,2 @@ */

* Parametrization of the text generation process
*
* Ad-hoc parametrization of the text generation process
*/

@@ -45,0 +41,0 @@ export interface GenerationParameters {

@@ -81,3 +81,3 @@ /**

temperature?: number;
tool_choice?: ChatCompletionInputTool;
tool_choice?: ChatCompletionInputToolChoice;
/**

@@ -92,3 +92,3 @@ * A prompt to be appended before the tools

*/
tools?: ToolElement[];
tools?: ChatCompletionInputTool[];
/**

@@ -149,5 +149,17 @@ * An integer between 0 and 5 specifying the number of most likely tokens to return at each

}
export type ChatCompletionInputTool = ChatCompletionInputToolType | string;
export interface ChatCompletionInputToolType {
function?: ChatCompletionInputFunctionName;
/**
*
* <https://platform.openai.com/docs/guides/function-calling/configuring-function-calling-behavior-using-the-tool_choice-parameter>
*/
export type ChatCompletionInputToolChoice = ChatCompletionInputToolChoiceEnum | ChatCompletionInputToolChoiceObject;
/**
* Means the model can pick between generating a message or calling one or more tools.
*
* Means the model will not call any tool and instead generates a message.
*
* Means the model must call one or more tools.
*/
export type ChatCompletionInputToolChoiceEnum = "auto" | "none" | "required";
export interface ChatCompletionInputToolChoiceObject {
function: ChatCompletionInputFunctionName;
[property: string]: unknown;

@@ -159,3 +171,3 @@ }

}
export interface ToolElement {
export interface ChatCompletionInputTool {
function: ChatCompletionInputFunctionDefinition;

@@ -162,0 +174,0 @@ type: string;

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Depth Estimation
*/

@@ -18,0 +18,0 @@ parameters?: {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Document Question Answering
*/

@@ -36,4 +36,2 @@ parameters?: DocumentQuestionAnsweringParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Document Question Answering

@@ -40,0 +38,0 @@ */

@@ -24,3 +24,3 @@ /**

*
* Must be a key in the `Sentence Transformers` configuration `prompts` dictionary.
* Must be a key in the `sentence-transformers` configuration `prompts` dictionary.
*

@@ -27,0 +27,0 @@ * For example if ``prompt_name`` is "query" and the ``prompts`` is {"query": "query: ",

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Fill Mask
*/

@@ -22,4 +22,2 @@ parameters?: FillMaskParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Fill Mask

@@ -26,0 +24,0 @@ */

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Image Classification
*/

@@ -23,4 +23,2 @@ parameters?: ImageClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Image Classification

@@ -27,0 +25,0 @@ */

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Image Segmentation
*/

@@ -23,4 +23,2 @@ parameters?: ImageSegmentationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Image Segmentation

@@ -27,0 +25,0 @@ */

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Image To Image
*/

@@ -23,4 +23,2 @@ parameters?: ImageToImageParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Image To Image

@@ -27,0 +25,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Image To Text
*/

@@ -22,4 +22,2 @@ parameters?: ImageToTextParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Image To Text

@@ -40,4 +38,2 @@ */

* Parametrization of the text generation process
*
* Ad-hoc parametrization of the text generation process
*/

@@ -44,0 +40,0 @@ export interface GenerationParameters {

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Object Detection
*/

@@ -23,4 +23,2 @@ parameters?: ObjectDetectionParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Object Detection

@@ -27,0 +25,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Question Answering
*/

@@ -36,4 +36,2 @@ parameters?: QuestionAnsweringParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Question Answering

@@ -40,0 +38,0 @@ */

@@ -13,3 +13,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Sentence Similarity
*/

@@ -16,0 +16,0 @@ parameters?: {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters.
* Additional inference parameters for summarization.
*/

@@ -22,4 +22,2 @@ parameters?: SummarizationParameters;

/**
* Additional inference parameters.
*
* Additional inference parameters for summarization.

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Table Question Answering
*/

@@ -18,0 +18,0 @@ parameters?: {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Text Classification
*/

@@ -22,4 +22,2 @@ parameters?: TextClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Text Classification

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Text To Audio
*/

@@ -22,4 +22,2 @@ parameters?: TextToAudioParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Text To Audio

@@ -36,4 +34,2 @@ */

* Parametrization of the text generation process
*
* Ad-hoc parametrization of the text generation process
*/

@@ -40,0 +36,0 @@ export interface GenerationParameters {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Text To Image
*/

@@ -22,4 +22,2 @@ parameters?: TextToImageParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Text To Image

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Text To Speech
*/

@@ -22,4 +22,2 @@ parameters?: TextToSpeechParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Text To Speech

@@ -36,4 +34,2 @@ */

* Parametrization of the text generation process
*
* Ad-hoc parametrization of the text generation process
*/

@@ -40,0 +36,0 @@ export interface GenerationParameters {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Text2text Generation
*/

@@ -22,4 +22,2 @@ parameters?: Text2TextGenerationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Text2text Generation

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Token Classification
*/

@@ -22,4 +22,2 @@ parameters?: TokenClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Token Classification

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Translation
*/

@@ -22,4 +22,2 @@ parameters?: TranslationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Translation

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Video Classification
*/

@@ -22,4 +22,2 @@ parameters?: VideoClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Video Classification

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Visual Question Answering
*/

@@ -36,4 +36,2 @@ parameters?: VisualQuestionAnsweringParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Visual Question Answering

@@ -40,0 +38,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Zero Shot Classification
*/

@@ -22,4 +22,2 @@ parameters: ZeroShotClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Zero Shot Classification

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Zero Shot Image Classification
*/

@@ -22,4 +22,2 @@ parameters: ZeroShotImageClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Zero Shot Image Classification

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Zero Shot Object Detection
*/

@@ -22,4 +22,2 @@ parameters: ZeroShotObjectDetectionParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Zero Shot Object Detection

@@ -26,0 +24,0 @@ */

@@ -474,2 +474,14 @@ /**

};
"Apple M4": {
tflops: number;
memory: number[];
};
"Apple M4 Pro": {
tflops: number;
memory: number[];
};
"Apple M4 Max": {
tflops: number;
memory: number[];
};
};

@@ -476,0 +488,0 @@ };

@@ -433,3 +433,3 @@ /**

"Apple M2 Pro": {
tflops: 13.6,
tflops: 6.8,
memory: [16, 24, 32],

@@ -446,7 +446,7 @@ },

"Apple M3": {
tflops: 2.84,
tflops: 4.1,
memory: [8, 16, 24],
},
"Apple M3 Pro": {
tflops: 14,
tflops: 7.4,
memory: [18, 36],

@@ -458,4 +458,16 @@ },

},
"Apple M4": {
tflops: 4.6,
memory: [16, 24, 32],
},
"Apple M4 Pro": {
tflops: 9.2,
memory: [24, 48],
},
"Apple M4 Max": {
tflops: 18.4,
memory: [36, 48, 64, 128],
},
},
},
};

@@ -8,3 +8,3 @@ import { stringifyGenerationConfig, stringifyMessages } from "./common.js";

-H 'Content-Type: application/json' \\
-H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}"`,
-H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}'`,
});

@@ -24,3 +24,3 @@ export const snippetTextGeneration = (model, accessToken, opts) => {

content: `curl 'https://api-inference.huggingface.co/models/${model.id}/v1/chat/completions' \\
-H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}" \\
-H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}' \\
-H 'Content-Type: application/json' \\

@@ -52,3 +52,3 @@ --data '{

-H 'Content-Type: application/json' \\
-H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}"`,
-H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}'`,
});

@@ -59,3 +59,3 @@ export const snippetFile = (model, accessToken) => ({

--data-binary '@${getModelInputSnippet(model, true, true)}' \\
-H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}"`,
-H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}'`,
});

@@ -62,0 +62,0 @@ export const curlSnippets = {

@@ -9,3 +9,3 @@ import { stringifyGenerationConfig, stringifyMessages } from "./common.js";

headers: {
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
"Content-Type": "application/json",

@@ -139,3 +139,3 @@ },

headers: {
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
"Content-Type": "application/json",

@@ -161,3 +161,3 @@ },

headers: {
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
"Content-Type": "application/json",

@@ -182,3 +182,3 @@ },

headers: {
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
"Content-Type": "application/json",

@@ -223,3 +223,3 @@ },

headers: {
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
"Content-Type": "application/json",

@@ -226,0 +226,0 @@ },

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Audio Classification
*/

@@ -23,4 +23,2 @@ parameters?: AudioClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Audio Classification

@@ -27,0 +25,0 @@ */

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Automatic Speech Recognition
*/

@@ -23,4 +23,2 @@ parameters?: AutomaticSpeechRecognitionParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Automatic Speech Recognition

@@ -41,4 +39,2 @@ */

* Parametrization of the text generation process
*
* Ad-hoc parametrization of the text generation process
*/

@@ -45,0 +41,0 @@ export interface GenerationParameters {

@@ -81,3 +81,3 @@ /**

temperature?: number;
tool_choice?: ChatCompletionInputTool;
tool_choice?: ChatCompletionInputToolChoice;
/**

@@ -92,3 +92,3 @@ * A prompt to be appended before the tools

*/
tools?: ToolElement[];
tools?: ChatCompletionInputTool[];
/**

@@ -149,5 +149,17 @@ * An integer between 0 and 5 specifying the number of most likely tokens to return at each

}
export type ChatCompletionInputTool = ChatCompletionInputToolType | string;
export interface ChatCompletionInputToolType {
function?: ChatCompletionInputFunctionName;
/**
*
* <https://platform.openai.com/docs/guides/function-calling/configuring-function-calling-behavior-using-the-tool_choice-parameter>
*/
export type ChatCompletionInputToolChoice = ChatCompletionInputToolChoiceEnum | ChatCompletionInputToolChoiceObject;
/**
* Means the model can pick between generating a message or calling one or more tools.
*
* Means the model will not call any tool and instead generates a message.
*
* Means the model must call one or more tools.
*/
export type ChatCompletionInputToolChoiceEnum = "auto" | "none" | "required";
export interface ChatCompletionInputToolChoiceObject {
function: ChatCompletionInputFunctionName;
[property: string]: unknown;

@@ -159,3 +171,3 @@ }

}
export interface ToolElement {
export interface ChatCompletionInputTool {
function: ChatCompletionInputFunctionDefinition;

@@ -162,0 +174,0 @@ type: string;

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Depth Estimation
*/

@@ -18,0 +18,0 @@ parameters?: {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Document Question Answering
*/

@@ -36,4 +36,2 @@ parameters?: DocumentQuestionAnsweringParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Document Question Answering

@@ -40,0 +38,0 @@ */

@@ -24,3 +24,3 @@ /**

*
* Must be a key in the `Sentence Transformers` configuration `prompts` dictionary.
* Must be a key in the `sentence-transformers` configuration `prompts` dictionary.
*

@@ -27,0 +27,0 @@ * For example if ``prompt_name`` is "query" and the ``prompts`` is {"query": "query: ",

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Fill Mask
*/

@@ -22,4 +22,2 @@ parameters?: FillMaskParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Fill Mask

@@ -26,0 +24,0 @@ */

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Image Classification
*/

@@ -23,4 +23,2 @@ parameters?: ImageClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Image Classification

@@ -27,0 +25,0 @@ */

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Image Segmentation
*/

@@ -23,4 +23,2 @@ parameters?: ImageSegmentationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Image Segmentation

@@ -27,0 +25,0 @@ */

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Image To Image
*/

@@ -23,4 +23,2 @@ parameters?: ImageToImageParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Image To Image

@@ -27,0 +25,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Image To Text
*/

@@ -22,4 +22,2 @@ parameters?: ImageToTextParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Image To Text

@@ -40,4 +38,2 @@ */

* Parametrization of the text generation process
*
* Ad-hoc parametrization of the text generation process
*/

@@ -44,0 +40,0 @@ export interface GenerationParameters {

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Object Detection
*/

@@ -23,4 +23,2 @@ parameters?: ObjectDetectionParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Object Detection

@@ -27,0 +25,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Question Answering
*/

@@ -36,4 +36,2 @@ parameters?: QuestionAnsweringParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Question Answering

@@ -40,0 +38,0 @@ */

@@ -13,3 +13,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Sentence Similarity
*/

@@ -16,0 +16,0 @@ parameters?: {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters.
* Additional inference parameters for summarization.
*/

@@ -22,4 +22,2 @@ parameters?: SummarizationParameters;

/**
* Additional inference parameters.
*
* Additional inference parameters for summarization.

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Table Question Answering
*/

@@ -18,0 +18,0 @@ parameters?: {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Text Classification
*/

@@ -22,4 +22,2 @@ parameters?: TextClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Text Classification

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Text To Audio
*/

@@ -22,4 +22,2 @@ parameters?: TextToAudioParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Text To Audio

@@ -36,4 +34,2 @@ */

* Parametrization of the text generation process
*
* Ad-hoc parametrization of the text generation process
*/

@@ -40,0 +36,0 @@ export interface GenerationParameters {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Text To Image
*/

@@ -22,4 +22,2 @@ parameters?: TextToImageParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Text To Image

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Text To Speech
*/

@@ -22,4 +22,2 @@ parameters?: TextToSpeechParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Text To Speech

@@ -36,4 +34,2 @@ */

* Parametrization of the text generation process
*
* Ad-hoc parametrization of the text generation process
*/

@@ -40,0 +36,0 @@ export interface GenerationParameters {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Text2text Generation
*/

@@ -22,4 +22,2 @@ parameters?: Text2TextGenerationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Text2text Generation

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Token Classification
*/

@@ -22,4 +22,2 @@ parameters?: TokenClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Token Classification

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Translation
*/

@@ -22,4 +22,2 @@ parameters?: TranslationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Translation

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Video Classification
*/

@@ -22,4 +22,2 @@ parameters?: VideoClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Video Classification

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Visual Question Answering
*/

@@ -36,4 +36,2 @@ parameters?: VisualQuestionAnsweringParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Visual Question Answering

@@ -40,0 +38,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Zero Shot Classification
*/

@@ -22,4 +22,2 @@ parameters: ZeroShotClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Zero Shot Classification

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Zero Shot Image Classification
*/

@@ -22,4 +22,2 @@ parameters: ZeroShotImageClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Zero Shot Image Classification

@@ -26,0 +24,0 @@ */

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Zero Shot Object Detection
*/

@@ -22,4 +22,2 @@ parameters: ZeroShotObjectDetectionParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Zero Shot Object Detection

@@ -26,0 +24,0 @@ */

{
"name": "@huggingface/tasks",
"packageManager": "pnpm@8.10.5",
"version": "0.13.5",
"version": "0.13.6",
"description": "List of ML tasks for huggingface.co/tasks",

@@ -6,0 +6,0 @@ "repository": "https://github.com/huggingface/huggingface.js.git",

@@ -455,3 +455,3 @@ /**

"Apple M2 Pro": {
tflops: 13.6,
tflops: 6.8,
memory: [16, 24, 32],

@@ -468,7 +468,7 @@ },

"Apple M3": {
tflops: 2.84,
tflops: 4.1,
memory: [8, 16, 24],
},
"Apple M3 Pro": {
tflops: 14,
tflops: 7.4,
memory: [18, 36],

@@ -480,2 +480,14 @@ },

},
"Apple M4": {
tflops: 4.6,
memory: [16, 24, 32],
},
"Apple M4 Pro": {
tflops: 9.2,
memory: [24, 48],
},
"Apple M4 Max": {
tflops: 18.4,
memory: [36, 48, 64, 128],
},
},

@@ -482,0 +494,0 @@ },

@@ -12,3 +12,3 @@ import type { PipelineType } from "../pipelines.js";

-H 'Content-Type: application/json' \\
-H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}"`,
-H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}'`,
});

@@ -40,3 +40,3 @@

content: `curl 'https://api-inference.huggingface.co/models/${model.id}/v1/chat/completions' \\
-H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}" \\
-H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}' \\
-H 'Content-Type: application/json' \\

@@ -68,3 +68,3 @@ --data '{

-H 'Content-Type: application/json' \\
-H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}"`,
-H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}'`,
});

@@ -76,3 +76,3 @@

--data-binary '@${getModelInputSnippet(model, true, true)}' \\
-H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}"`,
-H 'Authorization: Bearer ${accessToken || `{API_TOKEN}`}'`,
});

@@ -79,0 +79,0 @@

@@ -13,3 +13,3 @@ import type { PipelineType } from "../pipelines.js";

headers: {
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
"Content-Type": "application/json",

@@ -155,3 +155,3 @@ },

headers: {
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
"Content-Type": "application/json",

@@ -180,3 +180,3 @@ },

headers: {
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
"Content-Type": "application/json",

@@ -202,3 +202,3 @@ },

headers: {
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
"Content-Type": "application/json",

@@ -245,3 +245,3 @@ },

headers: {
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}"
Authorization: "Bearer ${accessToken || `{API_TOKEN}`}",
"Content-Type": "application/json",

@@ -248,0 +248,0 @@ },

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Audio Classification
*/

@@ -23,4 +23,2 @@ parameters?: AudioClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Audio Classification

@@ -27,0 +25,0 @@ */

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Audio Classification",
"$ref": "#/$defs/AudioClassificationParameters"

@@ -21,3 +21,2 @@ }

"title": "AudioClassificationParameters",
"description": "Additional inference parameters for Audio Classification",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -17,3 +17,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Automatic Speech Recognition
*/

@@ -25,4 +25,2 @@ parameters?: AutomaticSpeechRecognitionParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Automatic Speech Recognition

@@ -44,4 +42,2 @@ */

* Parametrization of the text generation process
*
* Ad-hoc parametrization of the text generation process
*/

@@ -48,0 +44,0 @@ export interface GenerationParameters {

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Automatic Speech Recognition",
"$ref": "#/$defs/AutomaticSpeechRecognitionParameters"

@@ -21,3 +21,2 @@ }

"title": "AutomaticSpeechRecognitionParameters",
"description": "Additional inference parameters for Automatic Speech Recognition",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -82,3 +82,3 @@ /**

temperature?: number;
tool_choice?: ChatCompletionInputTool;
tool_choice?: ChatCompletionInputToolChoice;
/**

@@ -93,3 +93,3 @@ * A prompt to be appended before the tools

*/
tools?: ToolElement[];
tools?: ChatCompletionInputTool[];
/**

@@ -159,6 +159,19 @@ * An integer between 0 and 5 specifying the number of most likely tokens to return at each

export type ChatCompletionInputTool = ChatCompletionInputToolType | string;
/**
*
* <https://platform.openai.com/docs/guides/function-calling/configuring-function-calling-behavior-using-the-tool_choice-parameter>
*/
export type ChatCompletionInputToolChoice = ChatCompletionInputToolChoiceEnum | ChatCompletionInputToolChoiceObject;
export interface ChatCompletionInputToolType {
function?: ChatCompletionInputFunctionName;
/**
* Means the model can pick between generating a message or calling one or more tools.
*
* Means the model will not call any tool and instead generates a message.
*
* Means the model must call one or more tools.
*/
export type ChatCompletionInputToolChoiceEnum = "auto" | "none" | "required";
export interface ChatCompletionInputToolChoiceObject {
function: ChatCompletionInputFunctionName;
[property: string]: unknown;

@@ -172,3 +185,3 @@ }

export interface ToolElement {
export interface ChatCompletionInputTool {
function: ChatCompletionInputFunctionDefinition;

@@ -175,0 +188,0 @@ type: string;

@@ -117,2 +117,3 @@ {

],
"default": "auto",
"nullable": true

@@ -276,21 +277,19 @@ },

"ChatCompletionInputToolChoice": {
"allOf": [
{
"$ref": "#/$defs/ChatCompletionInputToolType"
}
],
"nullable": true,
"title": "ChatCompletionInputToolChoice"
},
"ChatCompletionInputToolType": {
"oneOf": [
{
"type": "object",
"default": null,
"nullable": true
"type": "string",
"description": "Means the model can pick between generating a message or calling one or more tools.",
"enum": ["auto"]
},
{
"type": "string"
"type": "string",
"description": "Means the model will not call any tool and instead generates a message.",
"enum": ["none"]
},
{
"type": "string",
"description": "Means the model must call one or more tools.",
"enum": ["required"]
},
{
"type": "object",

@@ -303,10 +302,6 @@ "required": ["function"],

}
},
{
"type": "object",
"default": null,
"nullable": true
}
],
"title": "ChatCompletionInputToolType"
"description": "<https://platform.openai.com/docs/guides/function-calling/configuring-function-calling-behavior-using-the-tool_choice-parameter>",
"title": "ChatCompletionInputToolChoice"
},

@@ -313,0 +308,0 @@ "ChatCompletionInputFunctionName": {

@@ -29,3 +29,2 @@ {

"title": "GenerationParameters",
"description": "Ad-hoc parametrization of the text generation process",
"type": "object",

@@ -32,0 +31,0 @@ "properties": {

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Depth Estimation
*/

@@ -19,0 +19,0 @@ parameters?: { [key: string]: unknown };

@@ -12,3 +12,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Depth Estimation",
"$ref": "#/$defs/DepthEstimationParameters"

@@ -20,3 +20,2 @@ }

"title": "DepthEstimationParameters",
"description": "Additional inference parameters for Depth Estimation",
"type": "object",

@@ -23,0 +22,0 @@ "properties": {}

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Document Question Answering
*/

@@ -36,4 +36,2 @@ parameters?: DocumentQuestionAnsweringParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Document Question Answering

@@ -40,0 +38,0 @@ */

@@ -24,3 +24,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Document Question Answering",
"$ref": "#/$defs/DocumentQuestionAnsweringParameters"

@@ -32,3 +32,2 @@ }

"title": "DocumentQuestionAnsweringParameters",
"description": "Additional inference parameters for Document Question Answering",
"type": "object",

@@ -35,0 +34,0 @@ "properties": {

@@ -26,3 +26,3 @@ /**

*
* Must be a key in the `Sentence Transformers` configuration `prompts` dictionary.
* Must be a key in the `sentence-transformers` configuration `prompts` dictionary.
*

@@ -29,0 +29,0 @@ * For example if ``prompt_name`` is "query" and the ``prompts`` is {"query": "query: ",

@@ -20,3 +20,3 @@ {

"type": "string",
"description": "The name of the prompt that should be used by for encoding. If not set, no prompt\nwill be applied.\n\nMust be a key in the `Sentence Transformers` configuration `prompts` dictionary.\n\nFor example if ``prompt_name`` is \"query\" and the ``prompts`` is {\"query\": \"query: \", ...},\nthen the sentence \"What is the capital of France?\" will be encoded as\n\"query: What is the capital of France?\" because the prompt text will be prepended before\nany text to encode.",
"description": "The name of the prompt that should be used by for encoding. If not set, no prompt\nwill be applied.\n\nMust be a key in the `sentence-transformers` configuration `prompts` dictionary.\n\nFor example if ``prompt_name`` is \"query\" and the ``prompts`` is {\"query\": \"query: \", ...},\nthen the sentence \"What is the capital of France?\" will be encoded as\n\"query: What is the capital of France?\" because the prompt text will be prepended before\nany text to encode.",
"default": "null",

@@ -23,0 +23,0 @@ "example": "null",

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Fill Mask
*/

@@ -22,4 +22,2 @@ parameters?: FillMaskParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Fill Mask

@@ -26,0 +24,0 @@ */

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Fill Mask",
"$ref": "#/$defs/FillMaskParameters"

@@ -21,3 +21,2 @@ }

"title": "FillMaskParameters",
"description": "Additional inference parameters for Fill Mask",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Image Classification
*/

@@ -23,4 +23,2 @@ parameters?: ImageClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Image Classification

@@ -27,0 +25,0 @@ */

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Image Classification",
"$ref": "#/$defs/ImageClassificationParameters"

@@ -21,3 +21,2 @@ }

"title": "ImageClassificationParameters",
"description": "Additional inference parameters for Image Classification",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Image Segmentation
*/

@@ -23,4 +23,2 @@ parameters?: ImageSegmentationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Image Segmentation

@@ -27,0 +25,0 @@ */

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Image Segmentation",
"$ref": "#/$defs/ImageSegmentationParameters"

@@ -21,3 +21,2 @@ }

"title": "ImageSegmentationParameters",
"description": "Additional inference parameters for Image Segmentation",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -17,3 +17,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Image To Image
*/

@@ -25,4 +25,2 @@ parameters?: ImageToImageParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Image To Image

@@ -29,0 +27,0 @@ */

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Image To Image",
"$ref": "#/$defs/ImageToImageParameters"

@@ -21,3 +21,2 @@ }

"title": "ImageToImageParameters",
"description": "Additional inference parameters for Image To Image",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Image To Text
*/

@@ -24,4 +24,2 @@ parameters?: ImageToTextParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Image To Text

@@ -43,4 +41,2 @@ */

* Parametrization of the text generation process
*
* Ad-hoc parametrization of the text generation process
*/

@@ -47,0 +43,0 @@ export interface GenerationParameters {

@@ -12,3 +12,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Image To Text",
"$ref": "#/$defs/ImageToTextParameters"

@@ -20,3 +20,2 @@ }

"title": "ImageToTextParameters",
"description": "Additional inference parameters for Image To Text",
"type": "object",

@@ -23,0 +22,0 @@ "properties": {

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Object Detection
*/

@@ -23,4 +23,2 @@ parameters?: ObjectDetectionParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Object Detection

@@ -27,0 +25,0 @@ */

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Object Detection",
"$ref": "#/$defs/ObjectDetectionParameters"

@@ -21,3 +21,2 @@ }

"title": "ObjectDetectionParameters",
"description": "Additional inference parameters for Object Detection",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "TODO: describe additional parameters here.",
"$ref": "#/$defs/<TASK_ID>Parameters"

@@ -21,3 +21,2 @@ }

"title": "<TASK_ID>Parameters",
"description": "TODO: describe additional parameters here.",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Question Answering
*/

@@ -36,4 +36,2 @@ parameters?: QuestionAnsweringParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Question Answering

@@ -40,0 +38,0 @@ */

@@ -25,3 +25,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Question Answering",
"$ref": "#/$defs/QuestionAnsweringParameters"

@@ -33,3 +33,2 @@ }

"title": "QuestionAnsweringParameters",
"description": "Additional inference parameters for Question Answering",
"type": "object",

@@ -36,0 +35,0 @@ "properties": {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Sentence Similarity
*/

@@ -18,0 +18,0 @@ parameters?: { [key: string]: unknown };

@@ -27,3 +27,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Sentence Similarity",
"$ref": "#/$defs/SentenceSimilarityParameters"

@@ -35,3 +35,2 @@ }

"title": "SentenceSimilarityParameters",
"description": "Additional inference parameters for Sentence Similarity",
"type": "object",

@@ -38,0 +37,0 @@ "properties": {}

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters.
* Additional inference parameters for summarization.
*/

@@ -24,4 +24,2 @@ parameters?: SummarizationParameters;

/**
* Additional inference parameters.
*
* Additional inference parameters for summarization.

@@ -28,0 +26,0 @@ */

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters.",
"description": "Additional inference parameters for summarization.",
"$ref": "#/$defs/SummarizationParameters"

@@ -21,3 +21,2 @@ }

"title": "SummarizationParameters",
"description": "Additional inference parameters for summarization.",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Table Question Answering
*/

@@ -18,0 +18,0 @@ parameters?: {

@@ -31,3 +31,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Table Question Answering",
"$ref": "#/$defs/TableQuestionAnsweringParameters"

@@ -39,3 +39,2 @@ }

"title": "TableQuestionAnsweringParameters",
"description": "Additional inference parameters for Table Question Answering",
"type": "object",

@@ -42,0 +41,0 @@ "properties": {}

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Text Classification
*/

@@ -22,4 +22,2 @@ parameters?: TextClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Text Classification

@@ -26,0 +24,0 @@ */

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Text Classification",
"$ref": "#/$defs/TextClassificationParameters"

@@ -21,3 +21,2 @@ }

"title": "TextClassificationParameters",
"description": "Additional inference parameters for Text Classification",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Text To Audio
*/

@@ -24,4 +24,2 @@ parameters?: TextToAudioParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Text To Audio

@@ -39,4 +37,2 @@ */

* Parametrization of the text generation process
*
* Ad-hoc parametrization of the text generation process
*/

@@ -43,0 +39,0 @@ export interface GenerationParameters {

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Text To Audio",
"$ref": "#/$defs/TextToAudioParameters"

@@ -21,3 +21,2 @@ }

"title": "TextToAudioParameters",
"description": "Additional inference parameters for Text To Audio",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Text To Image
*/

@@ -24,4 +24,2 @@ parameters?: TextToImageParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Text To Image

@@ -28,0 +26,0 @@ */

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Text To Image",
"$ref": "#/$defs/TextToImageParameters"

@@ -21,3 +21,2 @@ }

"title": "TextToImageParameters",
"description": "Additional inference parameters for Text To Image",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Text To Speech
*/

@@ -24,4 +24,2 @@ parameters?: TextToSpeechParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Text To Speech

@@ -39,4 +37,2 @@ */

* Parametrization of the text generation process
*
* Ad-hoc parametrization of the text generation process
*/

@@ -43,0 +39,0 @@ export interface GenerationParameters {

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Text To Speech",
"$ref": "#/$defs/TextToSpeechParameters"

@@ -21,3 +21,2 @@ }

"title": "TextToSpeechParameters",
"description": "Additional inference parameters for Text To Speech",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Text2text Generation
*/

@@ -24,4 +24,2 @@ parameters?: Text2TextGenerationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Text2text Generation

@@ -28,0 +26,0 @@ */

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Text2text Generation",
"$ref": "#/$defs/Text2textGenerationParameters"

@@ -21,3 +21,2 @@ }

"title": "Text2textGenerationParameters",
"description": "Additional inference parameters for Text2text Generation",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Token Classification
*/

@@ -22,4 +22,2 @@ parameters?: TokenClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Token Classification

@@ -26,0 +24,0 @@ */

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Token Classification",
"$ref": "#/$defs/TokenClassificationParameters"

@@ -21,3 +21,2 @@ }

"title": "TokenClassificationParameters",
"description": "Additional inference parameters for Token Classification",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -16,3 +16,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Translation
*/

@@ -24,4 +24,2 @@ parameters?: TranslationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Translation

@@ -28,0 +26,0 @@ */

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Translation",
"$ref": "#/$defs/TranslationParameters"

@@ -21,3 +21,2 @@ }

"title": "TranslationParameters",
"description": "Additional inference parameters for Translation",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Video Classification
*/

@@ -22,4 +22,2 @@ parameters?: VideoClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Video Classification

@@ -26,0 +24,0 @@ */

@@ -12,3 +12,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Video Classification",
"$ref": "#/$defs/VideoClassificationParameters"

@@ -20,3 +20,2 @@ }

"title": "VideoClassificationParameters",
"description": "Additional inference parameters for Video Classification",
"type": "object",

@@ -23,0 +22,0 @@ "properties": {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Visual Question Answering
*/

@@ -36,4 +36,2 @@ parameters?: VisualQuestionAnsweringParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Visual Question Answering

@@ -40,0 +38,0 @@ */

@@ -23,3 +23,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Visual Question Answering",
"$ref": "#/$defs/VisualQuestionAnsweringParameters"

@@ -31,3 +31,2 @@ }

"title": "VisualQuestionAnsweringParameters",
"description": "Additional inference parameters for Visual Question Answering",
"type": "object",

@@ -34,0 +33,0 @@ "properties": {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Zero Shot Classification
*/

@@ -22,4 +22,2 @@ parameters: ZeroShotClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Zero Shot Classification

@@ -26,0 +24,0 @@ */

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Zero Shot Classification",
"$ref": "#/$defs/ZeroShotClassificationParameters"

@@ -21,3 +21,2 @@ }

"title": "ZeroShotClassificationParameters",
"description": "Additional inference parameters for Zero Shot Classification",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Zero Shot Image Classification
*/

@@ -22,4 +22,2 @@ parameters: ZeroShotImageClassificationParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Zero Shot Image Classification

@@ -26,0 +24,0 @@ */

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Zero Shot Image Classification",
"$ref": "#/$defs/ZeroShotImageClassificationParameters"

@@ -21,3 +21,2 @@ }

"title": "ZeroShotImageClassificationParameters",
"description": "Additional inference parameters for Zero Shot Image Classification",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

@@ -15,3 +15,3 @@ /**

/**
* Additional inference parameters
* Additional inference parameters for Zero Shot Object Detection
*/

@@ -22,4 +22,2 @@ parameters: ZeroShotObjectDetectionParameters;

/**
* Additional inference parameters
*
* Additional inference parameters for Zero Shot Object Detection

@@ -26,0 +24,0 @@ */

@@ -13,3 +13,3 @@ {

"parameters": {
"description": "Additional inference parameters",
"description": "Additional inference parameters for Zero Shot Object Detection",
"$ref": "#/$defs/ZeroShotObjectDetectionParameters"

@@ -21,3 +21,2 @@ }

"title": "ZeroShotObjectDetectionParameters",
"description": "Additional inference parameters for Zero Shot Object Detection",
"type": "object",

@@ -24,0 +23,0 @@ "properties": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc