Socket
Socket
Sign inDemoInstall

llm-interface

Package Overview
Dependencies
Maintainers
0
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

llm-interface - npm Package Compare versions

Comparing version 2.0.149 to 2.0.1491

2

package.json
{
"name": "llm-interface",
"version": "2.0.149",
"version": "2.0.1491",
"main": "src/index.js",

@@ -5,0 +5,0 @@ "description": "A simple, unified NPM-based interface for interacting with multiple Large Language Model (LLM) APIs, including OpenAI, AI21 Studio, Anthropic, Cloudflare AI, Cohere, Fireworks AI, Google Gemini, Goose AI, Groq, Hugging Face, Mistral AI, Perplexity, Reka AI, watsonx.ai, and LLaMA.cpp.",

@@ -5,3 +5,3 @@ # llm-interface

![Version 2.0.149](https://img.shields.io/badge/Version-2.0.149-blue) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Built with Node.js](https://img.shields.io/badge/Built%20with-Node.js-green)](https://nodejs.org/)
![Version 2.0.1491](https://img.shields.io/badge/Version-2.0.1491-blue) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Built with Node.js](https://img.shields.io/badge/Built%20with-Node.js-green)](https://nodejs.org/)

@@ -8,0 +8,0 @@ ## Introduction

@@ -5,3 +5,2 @@ const { SendMessageError, EmbeddingsError } = require('./errors.js');

const log = require('loglevel');
log.setLevel(log.levels.SILENT);

@@ -23,2 +22,3 @@ /**

let lastError;
let statusCode = 0;

@@ -38,3 +38,3 @@ while (retryAttempts > 0) {

lastError = error;
const statusCode = error.response?.status;
statusCode = error.response?.status;
const delayTime = (currentRetry + 1) * retryMultiplier * 1000 + 500;

@@ -41,0 +41,0 @@

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