@huggingface/inference 4.11.0 → 4.11.1

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.
@@ -1,3 +1,3 @@
1
- export declare const PACKAGE_VERSION = "4.11.0";
1
+ export declare const PACKAGE_VERSION = "4.11.1";
2
2
  export declare const PACKAGE_NAME = "@huggingface/inference";
3
3
  //# sourceMappingURL=package.d.ts.map
@@ -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.0";
5
+ exports.PACKAGE_VERSION = "4.11.1";
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 = ["huggingface_hub", "fal_client", "requests", "openai"];
12
- const JS_CLIENTS = ["fetch", "huggingface.js", "openai"];
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],
@@ -1,3 +1,3 @@
1
- export declare const PACKAGE_VERSION = "4.11.0";
1
+ export declare const PACKAGE_VERSION = "4.11.1";
2
2
  export declare const PACKAGE_NAME = "@huggingface/inference";
3
3
  //# sourceMappingURL=package.d.ts.map
@@ -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.0";
2
+ export const PACKAGE_VERSION = "4.11.1";
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 = ["huggingface_hub", "fal_client", "requests", "openai"];
9
- const JS_CLIENTS = ["fetch", "huggingface.js", "openai"];
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.0",
3
+ "version": "4.11.1",
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.49",
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.0";
2
+ export const PACKAGE_VERSION = "4.11.1";
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 = ["huggingface_hub", "fal_client", "requests", "openai"] as const;
28
- const JS_CLIENTS = ["fetch", "huggingface.js", "openai"] as const;
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];