You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+15-17
Original file line number
Diff line number
Diff line change
@@ -2,27 +2,33 @@
2
2
3
3
[](https://github.com/samestrin/llm-interface/stargazers)[](https://github.com/samestrin/llm-interface/network/members)[](https://github.com/samestrin/llm-interface/watchers)
4
4
5
-
[](https://opensource.org/licenses/MIT)[](https://nodejs.org/)
5
+
[](https://opensource.org/licenses/MIT)[](https://nodejs.org/)
6
6
7
7
## Introduction
8
8
9
-
`llm-interface` is a wrapper designed to interact with multiple Large Language Model (LLM) APIs. `llm-interface` simplifies integrating various LLM providers, 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**, into your applications. It is available as an [NPM package](https://www.npmjs.com/package/llm-interface).
9
+
`llm-interface` is a wrapper designed to interact with multiple Large Language Model (LLM) APIs. `llm-interface` simplifies integrating various LLM providers, including **OpenAI, AI21 Studio, Anthropic, Cloudflare AI, Cohere, DeepInfra, Fireworks AI, Friendli AI, Google Gemini, Goose AI, Groq, Hugging Face, Mistral AI, Monster API, Octo AI, Perplexity, Reka AI, watsonx.ai, and LLaMA.cpp (ollama compatible)**, into your applications. It is available as an [NPM package](https://www.npmjs.com/package/llm-interface).
10
10
11
11
This goal of `llm-interface` is to provide a single, simple, unified interface for sending messages and receiving responses from different LLM services. This will make it easier for developers to work with multiple LLMs without worrying about the specific intricacies of each API.
12
12
13
13
## Features
14
14
15
-
-**Unified Interface**: `LLMInterfaceSendMessage` is a single, consistent interface to interact with **fifteen** different LLM APIs.
15
+
-**Unified Interface**: `LLMInterfaceSendMessage` is a single, consistent interface to interact with **19 different LLM APIs**.
16
16
-**Dynamic Module Loading**: Automatically loads and manages LLM interfaces only when they are invoked, minimizing resource usage.
17
17
-**Error Handling**: Robust error handling mechanisms to ensure reliable API interactions.
18
18
-**Extensible**: Easily extendable to support additional LLM providers as needed.
19
19
-**Response Caching**: Efficiently caches LLM responses to reduce costs and enhance performance.
20
20
-**Graceful Retries**: Automatically retry failed prompts with increasing delays to ensure successful responses.
21
21
-**JSON Output**: Simple to use native JSON output for OpenAI, Fireworks AI, and Gemini responses.
22
-
-**JSON Repair**: Detect and repair invalid JSON responses.
22
+
-**JSON Repair**: Detect and repair invalid JSON responses.
23
23
24
24
## Updates
25
25
26
+
**v2.0.7**
27
+
28
+
-**New LLM Providers**: Added support for DeepInfra, FriendliAI, Monster API, Octo AI, Together AI, and NVIDIA.
29
+
-**Improved Test Coverage**: New DeepInfra, FriendliAI, Monster API, NVIDIA, Octo AI, Together AI, and watsonx.ai test cases.
30
+
-**Refactor**: Improved support for OpenAI compatible APIs using new BaseInterface class.
31
+
26
32
**v2.0.6**
27
33
28
34
-**New LLM Provider**: Added support for watsonx.ai.
@@ -31,16 +37,6 @@ This goal of `llm-interface` is to provide a single, simple, unified interface f
31
37
32
38
-**New LLM Providers Functions**: `LLMInterface.getAllModelNames()` and `LLMInterface.getModelConfigValue(provider, configValueKey)`.
33
39
34
-
**v2.0.2**
35
-
36
-
-**New LLM Providers**: Added support for Cloudflare AI, and Fireworks AI.
37
-
-**JSON Consistency**: A breaking change has been introduced: all responses now return as valid JSON objects.
38
-
-**JSON Repair**: Use `interfaceOptions.attemptJsonRepair` to repair invalid JSON responses when they occur.
39
-
-**Improved Hugging Face Interface**: Refactored interface to support the undocumented chat completion endpoint.
0 commit comments