New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More β†’
Socket
Sign inDemoInstall
Socket

@huggingface/inference

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huggingface/inference - npm Package Compare versions

Comparing version 2.6.3 to 2.6.4

3

./dist/index.js

@@ -195,3 +195,4 @@ /// <reference path="./index.d.ts" />

}),
credentials
credentials,
signal: options?.signal
};

@@ -198,0 +199,0 @@ return { url, info };

@@ -27,2 +27,6 @@ export interface Options {

fetch?: typeof fetch;
/**
* Abort Controller signal to use for request interruption.
*/
signal?: AbortSignal;

@@ -790,2 +794,6 @@ /**

truncate?: number;
/**
* (Default: []) List of strings. The model will stop generating text when one of the strings in the list is generated.
* **/
stop_sequences?: string[];
};

@@ -792,0 +800,0 @@ };

@@ -195,3 +195,4 @@ /// <reference path="./index.d.ts" />

}),
credentials
credentials,
signal: options?.signal
};

@@ -198,0 +199,0 @@ return { url, info };

{
"name": "@huggingface/inference",
"version": "2.6.3",
"version": "2.6.4",
"packageManager": "pnpm@8.3.1",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -193,3 +193,3 @@ # πŸ€— Hugging Face Inference API

await hf.imageToImage({
inputs: readFileSync("test/stormtrooper_depth.png"),
inputs: new Blob([readFileSync("test/stormtrooper_depth.png")]),
parameters: {

@@ -196,0 +196,0 @@ prompt: "elmo's lecture",

@@ -109,2 +109,3 @@ import type { InferenceTask, Options, RequestArgs } from "../types";

credentials,
signal: options?.signal,
};

@@ -111,0 +112,0 @@

@@ -51,2 +51,6 @@ import { InferenceOutputError } from "../../lib/InferenceOutputError";

truncate?: number;
/**
* (Default: []) List of strings. The model will stop generating text when one of the strings in the list is generated.
* **/
stop_sequences?: string[];
};

@@ -53,0 +57,0 @@ };

@@ -27,2 +27,6 @@ export interface Options {

fetch?: typeof fetch;
/**
* Abort Controller signal to use for request interruption.
*/
signal?: AbortSignal;

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

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