@huggingface/inference
Advanced tools
Comparing version 2.6.3 to 2.6.4
@@ -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
239121
6523