Skip to content

Commit

Permalink
feat: added default timeout of 20 seconds to prevent hangs
Browse files Browse the repository at this point in the history
  • Loading branch information
samestrin committed Aug 2, 2024
1 parent d9206e9 commit 7622000
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Star on GitHub](https://img.shields.io/github/stars/samestrin/llm-interface?style=social)](https://github.com/samestrin/llm-interface/stargazers) [![Fork on GitHub](https://img.shields.io/github/forks/samestrin/llm-interface?style=social)](https://github.com/samestrin/llm-interface/network/members) [![Watch on GitHub](https://img.shields.io/github/watchers/samestrin/llm-interface?style=social)](https://github.com/samestrin/llm-interface/watchers)

![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/)
![Version 2.0.1492](https://img.shields.io/badge/Version-2.0.1492-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/)

## Introduction

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "llm-interface",
"version": "2.0.1491",
"version": "2.0.1492",
"main": "src/index.js",
"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.",
"type": "commonjs",
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/baseInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class BaseInterface {
...headers,
Authorization: `Bearer ${this.apiKey}`,
},
timeout: 20000,
//signal: controller.signal,
});
this.config = config;
Expand Down

0 comments on commit 7622000

Please sign in to comment.