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
4
Versions
61
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 3.3.2 to 3.3.3

5

dist/index.js

@@ -46,2 +46,3 @@ var __defProp = Object.defineProperty;

var HF_HUB_URL = "https://huggingface.co";
var HF_ROUTER_URL = "https://router.huggingface.co";

@@ -73,3 +74,3 @@ // src/providers/fal-ai.ts

var name = "@huggingface/inference";
var version = "3.3.2";
var version = "3.3.3";

@@ -138,3 +139,3 @@ // src/providers/consts.ts

// src/lib/makeRequestOptions.ts
var HF_HUB_INFERENCE_PROXY_TEMPLATE = `${HF_HUB_URL}/api/inference-proxy/{{PROVIDER}}`;
var HF_HUB_INFERENCE_PROXY_TEMPLATE = `${HF_ROUTER_URL}/{{PROVIDER}}`;
var tasks = null;

@@ -141,0 +142,0 @@ async function makeRequestOptions(args, options) {

1

dist/src/config.d.ts
export declare const HF_HUB_URL = "https://huggingface.co";
export declare const HF_ROUTER_URL = "https://router.huggingface.co";
//# sourceMappingURL=config.d.ts.map
{
"name": "@huggingface/inference",
"version": "3.3.2",
"version": "3.3.3",
"packageManager": "pnpm@8.10.5",

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

@@ -128,3 +128,3 @@ # 🤗 Hugging Face Inference

Using the `chatCompletion` method, you can generate text with models compatible with the OpenAI Chat Completion API. All models served by [TGI](https://api-inference.huggingface.co/framework/text-generation-inference) on Hugging Face support Messages API.
Using the `chatCompletion` method, you can generate text with models compatible with the OpenAI Chat Completion API. All models served by [TGI](https://huggingface.co/docs/text-generation-inference/) on Hugging Face support Messages API.

@@ -131,0 +131,0 @@ [Demo](https://huggingface.co/spaces/huggingfacejs/streaming-chat-completion)

export const HF_HUB_URL = "https://huggingface.co";
export const HF_ROUTER_URL = "https://router.huggingface.co";

@@ -1,2 +0,2 @@

import { HF_HUB_URL } from "../config";
import { HF_HUB_URL, HF_ROUTER_URL } from "../config";
import { FAL_AI_API_BASE_URL } from "../providers/fal-ai";

@@ -14,3 +14,3 @@ import { NEBIUS_API_BASE_URL } from "../providers/nebius";

const HF_HUB_INFERENCE_PROXY_TEMPLATE = `${HF_HUB_URL}/api/inference-proxy/{{PROVIDER}}`;
const HF_HUB_INFERENCE_PROXY_TEMPLATE = `${HF_ROUTER_URL}/{{PROVIDER}}`;

@@ -17,0 +17,0 @@ /**

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