@xberg-io/liter-llm 1.9.2 → 1.10.0
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.
- package/README.md +7 -7
- package/index.d.ts +600 -398
- package/index.js +12 -4
- package/liter-llm-node.darwin-arm64.node +0 -0
- package/liter-llm-node.linux-arm64-gnu.node +0 -0
- package/liter-llm-node.linux-x64-gnu.node +0 -0
- package/liter-llm-node.win32-arm64-msvc.node +0 -0
- package/liter-llm-node.win32-x64-msvc.node +0 -0
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div align="center" style="display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0">
|
|
11
11
|
<!-- Built with -->
|
|
12
12
|
<a href="https://github.com/xberg-io/alef">
|
|
13
|
-
<img src="https://img.shields.io/badge/
|
|
13
|
+
<img src="https://img.shields.io/badge/built%20with-alef%20%D7%90-007ec6" alt="Built with alef" />
|
|
14
14
|
</a>
|
|
15
15
|
<!-- Language Bindings -->
|
|
16
16
|
<a href="https://crates.io/crates/liter-llm">
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
</a>
|
|
80
80
|
</div>
|
|
81
81
|
|
|
82
|
-
Universal LLM API client for TypeScript and Node.js. Access
|
|
82
|
+
Universal LLM API client for TypeScript and Node.js. Access 163 LLM providers through a single interface with native NAPI-RS bindings, async/await, streaming, tool calling, and full TypeScript type definitions.
|
|
83
83
|
|
|
84
84
|
## What This Package Provides
|
|
85
85
|
|
|
@@ -227,7 +227,7 @@ This binding uses NAPI-RS to provide native Node.js bindings with:
|
|
|
227
227
|
|
|
228
228
|
## Features
|
|
229
229
|
|
|
230
|
-
### Supported Providers (
|
|
230
|
+
### Supported Providers (163)
|
|
231
231
|
|
|
232
232
|
Route to any provider using the `provider/model` prefix convention:
|
|
233
233
|
|
|
@@ -247,7 +247,7 @@ Route to any provider using the `provider/model` prefix convention:
|
|
|
247
247
|
|
|
248
248
|
### Key Capabilities
|
|
249
249
|
|
|
250
|
-
- **Provider Routing** -- Single client for
|
|
250
|
+
- **Provider Routing** -- Single client for 163 LLM providers via `provider/model` prefix
|
|
251
251
|
- **Local LLMs** — Connect to locally-hosted models via Ollama, LM Studio, vLLM, llama.cpp, and other local inference servers
|
|
252
252
|
- **Unified API** -- Consistent `chat`, `chat_stream`, `embeddings`, `list_models` interface
|
|
253
253
|
- **Streaming** -- Real-time token streaming via `chat_stream`
|
|
@@ -268,7 +268,7 @@ Built on a compiled Rust core for speed and safety:
|
|
|
268
268
|
|
|
269
269
|
## Provider Routing
|
|
270
270
|
|
|
271
|
-
Route to
|
|
271
|
+
Route to 163 providers using the `provider/model` prefix convention:
|
|
272
272
|
|
|
273
273
|
```text
|
|
274
274
|
openai/gpt-4o
|
|
@@ -303,7 +303,7 @@ To use the MCP server inside a coding agent, install the **liter-llm plugin** fr
|
|
|
303
303
|
|
|
304
304
|
- **[Documentation](https://docs.liter-llm.xberg.io)** -- Full docs and API reference
|
|
305
305
|
- **[GitHub Repository](https://github.com/xberg-io/liter-llm)** -- Source, issues, and discussions
|
|
306
|
-
- **[Provider Registry](https://github.com/xberg-io/liter-llm/blob/main/schemas/providers.json)** --
|
|
306
|
+
- **[Provider Registry](https://github.com/xberg-io/liter-llm/blob/main/schemas/providers.json)** -- 163 supported providers
|
|
307
307
|
|
|
308
308
|
## Part of Xberg.io
|
|
309
309
|
|
|
@@ -311,7 +311,7 @@ To use the MCP server inside a coding agent, install the **liter-llm plugin** fr
|
|
|
311
311
|
- [Xberg Enterprise](https://github.com/xberg-io/xberg-enterprise) — managed extraction API with SDKs, dashboards, and observability.
|
|
312
312
|
- [crawlberg](https://github.com/xberg-io/crawlberg) — web crawling and scraping with HTML→Markdown and headless-Chrome fallback.
|
|
313
313
|
- [html-to-markdown](https://github.com/xberg-io/html-to-markdown) — fast, lossless HTML→Markdown engine.
|
|
314
|
-
- [liter-llm](https://github.com/xberg-io/liter-llm) — universal LLM API client with native bindings for 14 languages and
|
|
314
|
+
- [liter-llm](https://github.com/xberg-io/liter-llm) — universal LLM API client with native bindings for 14 languages and 163 providers.
|
|
315
315
|
- [tree-sitter-language-pack](https://github.com/xberg-io/tree-sitter-language-pack) — tree-sitter grammars and code-intelligence primitives.
|
|
316
316
|
- [alef](https://github.com/xberg-io/alef) — the polyglot binding generator that produces every per-language binding across the 5 polyglot repos.
|
|
317
317
|
- [Discord](https://discord.gg/xt9WY3GnKR) — community, roadmap, announcements.
|