@huggingface/inference 4.11.0 → 4.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/package.d.ts +1 -1
- package/dist/commonjs/package.js +1 -1
- package/dist/commonjs/snippets/getInferenceSnippets.js +2 -2
- package/dist/esm/package.d.ts +1 -1
- package/dist/esm/package.js +1 -1
- package/dist/esm/snippets/getInferenceSnippets.js +2 -2
- package/package.json +2 -2
- package/src/package.ts +1 -1
- package/src/snippets/getInferenceSnippets.ts +2 -2
package/dist/commonjs/package.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PACKAGE_NAME = exports.PACKAGE_VERSION = void 0;
|
|
4
4
|
// Generated file from package.json. Issues importing JSON directly when publishing on commonjs/ESM - see https://github.com/microsoft/TypeScript/issues/51783
|
|
5
|
-
exports.PACKAGE_VERSION = "4.11.
|
|
5
|
+
exports.PACKAGE_VERSION = "4.11.2";
|
|
6
6
|
exports.PACKAGE_NAME = "@huggingface/inference";
|
|
@@ -8,8 +8,8 @@ const makeRequestOptions_js_1 = require("../lib/makeRequestOptions.js");
|
|
|
8
8
|
const templates_exported_js_1 = require("./templates.exported.js");
|
|
9
9
|
const logger_js_1 = require("../lib/logger.js");
|
|
10
10
|
const config_js_1 = require("../config.js");
|
|
11
|
-
const PYTHON_CLIENTS = ["
|
|
12
|
-
const JS_CLIENTS = ["
|
|
11
|
+
const PYTHON_CLIENTS = ["openai", "huggingface_hub", "fal_client", "requests"];
|
|
12
|
+
const JS_CLIENTS = ["openai", "huggingface.js", "fetch"];
|
|
13
13
|
const SH_CLIENTS = ["curl"];
|
|
14
14
|
const CLIENTS = {
|
|
15
15
|
js: [...JS_CLIENTS],
|
package/dist/esm/package.d.ts
CHANGED
package/dist/esm/package.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Generated file from package.json. Issues importing JSON directly when publishing on commonjs/ESM - see https://github.com/microsoft/TypeScript/issues/51783
|
|
2
|
-
export const PACKAGE_VERSION = "4.11.
|
|
2
|
+
export const PACKAGE_VERSION = "4.11.2";
|
|
3
3
|
export const PACKAGE_NAME = "@huggingface/inference";
|
|
@@ -5,8 +5,8 @@ import { makeRequestOptionsFromResolvedModel } from "../lib/makeRequestOptions.j
|
|
|
5
5
|
import { templates } from "./templates.exported.js";
|
|
6
6
|
import { getLogger } from "../lib/logger.js";
|
|
7
7
|
import { HF_ROUTER_AUTO_ENDPOINT } from "../config.js";
|
|
8
|
-
const PYTHON_CLIENTS = ["
|
|
9
|
-
const JS_CLIENTS = ["
|
|
8
|
+
const PYTHON_CLIENTS = ["openai", "huggingface_hub", "fal_client", "requests"];
|
|
9
|
+
const JS_CLIENTS = ["openai", "huggingface.js", "fetch"];
|
|
10
10
|
const SH_CLIENTS = ["curl"];
|
|
11
11
|
const CLIENTS = {
|
|
12
12
|
js: [...JS_CLIENTS],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huggingface/inference",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Hugging Face and Tim Mikeladze <tim.mikeladze@gmail.com>",
|
|
6
6
|
"description": "Typescript client for the Hugging Face Inference Providers and Inference Endpoints",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"type": "module",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@huggingface/tasks": "^0.19.
|
|
43
|
+
"@huggingface/tasks": "^0.19.50",
|
|
44
44
|
"@huggingface/jinja": "^0.5.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
package/src/package.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Generated file from package.json. Issues importing JSON directly when publishing on commonjs/ESM - see https://github.com/microsoft/TypeScript/issues/51783
|
|
2
|
-
export const PACKAGE_VERSION = "4.11.
|
|
2
|
+
export const PACKAGE_VERSION = "4.11.2";
|
|
3
3
|
export const PACKAGE_NAME = "@huggingface/inference";
|
|
@@ -24,8 +24,8 @@ export type InferenceSnippetOptions = {
|
|
|
24
24
|
inputs?: Record<string, unknown>; // overrides the default snippet's inputs
|
|
25
25
|
} & Record<string, unknown>;
|
|
26
26
|
|
|
27
|
-
const PYTHON_CLIENTS = ["
|
|
28
|
-
const JS_CLIENTS = ["
|
|
27
|
+
const PYTHON_CLIENTS = ["openai", "huggingface_hub", "fal_client", "requests"] as const;
|
|
28
|
+
const JS_CLIENTS = ["openai", "huggingface.js", "fetch"] as const;
|
|
29
29
|
const SH_CLIENTS = ["curl"] as const;
|
|
30
30
|
|
|
31
31
|
type Client = (typeof SH_CLIENTS)[number] | (typeof PYTHON_CLIENTS)[number] | (typeof JS_CLIENTS)[number];
|