liter_llm 1.5.0 → 1.5.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50e1a34b0a2553bad407eeaf67f05e60b6eb0960ff587fcb2aa2c59f647caa36
4
- data.tar.gz: fb0ced2da3142a854eaa449b0c5094f256557a01b6b9d5d3de422d4c799c597d
3
+ metadata.gz: 31629159db5a82e9010fc3c682298c24aa21ff5a6ab3eacc57c9690d91a58176
4
+ data.tar.gz: db312fe832c3cac70c3e971ee79b730aa08b4507f12acb45032a7c8acd44a313
5
5
  SHA512:
6
- metadata.gz: 2dbc5b642eda0845a29ebffc0be81963d566d8d0df554fb636960955da91cb34c6823fd5b438b2fad61fcf69c8f6942b82ff096fc07a78645ab1e7a62b257b58
7
- data.tar.gz: b6cba1786a3b96fd7b8ec3c4b2693552d7d140e57ce2c523e6e1b77bc9709c8df7e0783a06ed5c3be6391487621bce04850471411728b174e12163cac7bcdcb0
6
+ metadata.gz: 003aa72cbfec37e17a9e055cefd715c863b82f69a6d4c7e9d7bfdbb06e32254ef5b500d1fc40fb3429043b8f9e4cde2041c1ca53b5eb07940bdec2d1848b4c73
7
+ data.tar.gz: 5f530b839429a7784a20720e31f40442cf9eef6fa7255e80e2e60305225f93a7e0d7df7af339d51e56ecd9f8bb603f37c631691a8fc17e35918fe39311834521
data/README.md CHANGED
@@ -1,110 +1,136 @@
1
1
  # Ruby
2
2
 
3
- <div align="center" style="display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0">
4
- <!-- Built with -->
5
- <a href="https://github.com/kreuzberg-dev/alef">
6
- <img src="https://img.shields.io/badge/Bindings-alef%20%D7%90-007ec6" alt="Bindings" />
7
- </a>
8
- <!-- Language Bindings -->
9
- <a href="https://crates.io/crates/liter-llm">
10
- <img src="https://img.shields.io/crates/v/liter-llm?label=Rust&color=007ec6" alt="Rust" />
11
- </a>
12
- <a href="https://pypi.org/project/liter-llm/">
13
- <img src="https://img.shields.io/pypi/v/liter-llm?label=Python&color=007ec6" alt="Python" />
14
- </a>
15
- <a href="https://www.npmjs.com/package/@kreuzberg/liter-llm">
16
- <img src="https://img.shields.io/npm/v/@kreuzberg/liter-llm?label=Node.js&color=007ec6" alt="Node.js" />
17
- </a>
18
- <a href="https://www.npmjs.com/package/@kreuzberg/liter-llm-wasm">
19
- <img src="https://img.shields.io/npm/v/@kreuzberg/liter-llm-wasm?label=WASM&color=007ec6" alt="WASM" />
20
- </a>
21
- <a href="https://central.sonatype.com/artifact/dev.kreuzberg/liter-llm">
22
- <img src="https://img.shields.io/maven-central/v/dev.kreuzberg/liter-llm?label=Java&color=007ec6" alt="Java" />
23
- </a>
24
- <a href="https://github.com/kreuzberg-dev/liter-llm/tree/main/packages/go">
25
- <img src="https://img.shields.io/github/v/tag/kreuzberg-dev/liter-llm?label=Go&color=007ec6" alt="Go" />
26
- </a>
27
- <a href="https://www.nuget.org/packages/LiterLlm">
28
- <img src="https://img.shields.io/nuget/v/LiterLlm?label=C%23&color=007ec6" alt="C#" />
29
- </a>
30
- <a href="https://packagist.org/packages/kreuzberg/liter-llm">
31
- <img src="https://img.shields.io/packagist/v/kreuzberg/liter-llm?label=PHP&color=007ec6" alt="PHP" />
32
- </a>
33
- <a href="https://rubygems.org/gems/liter_llm">
34
- <img src="https://img.shields.io/gem/v/liter_llm?label=Ruby&color=007ec6" alt="Ruby" />
35
- </a>
36
- <a href="https://hex.pm/packages/liter_llm">
37
- <img src="https://img.shields.io/hexpm/v/liter_llm?label=Elixir&color=007ec6" alt="Elixir" />
38
- </a>
39
- <a href="https://github.com/kreuzberg-dev/liter-llm/pkgs/container/liter-llm">
40
- <img src="https://img.shields.io/badge/Docker-007ec6?logo=docker&logoColor=white" alt="Docker" />
41
- </a>
42
- <a href="https://github.com/kreuzberg-dev/homebrew-tap/blob/main/Formula/liter-llm.rb">
43
- <img src="https://img.shields.io/badge/Homebrew-007ec6?logo=homebrew&logoColor=white" alt="Homebrew" />
44
- </a>
45
- <a href="https://github.com/kreuzberg-dev/liter-llm/tree/main/crates/liter-llm-ffi">
46
- <img src="https://img.shields.io/badge/C-FFI-007ec6" alt="C FFI" />
47
- </a>
48
-
49
- <!-- Project Info -->
50
- <a href="https://github.com/kreuzberg-dev/liter-llm/blob/main/LICENSE">
51
- <img src="https://img.shields.io/badge/License-MIT-007ec6" alt="License" />
52
- </a>
53
- <a href="https://docs.liter-llm.kreuzberg.dev">
54
- <img src="https://img.shields.io/badge/Docs-liter--llm-007ec6" alt="Docs" />
55
- </a>
3
+ <div
4
+ align="center"
5
+ style="display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0"
6
+ >
7
+ <!-- Built with -->
8
+ <a href="https://github.com/kreuzberg-dev/alef">
9
+ <img
10
+ src="https://img.shields.io/badge/built%20with-alef%20%D7%90-007ec6"
11
+ alt="Built with alef"
12
+ />
13
+ </a>
14
+ <!-- Language Bindings -->
15
+ <a href="https://crates.io/crates/liter-llm">
16
+ <img src="https://img.shields.io/crates/v/liter-llm?label=Rust&color=007ec6" alt="Rust" />
17
+ </a>
18
+ <a href="https://pypi.org/project/liter-llm/">
19
+ <img src="https://img.shields.io/pypi/v/liter-llm?label=Python&color=007ec6" alt="Python" />
20
+ </a>
21
+ <a href="https://www.npmjs.com/package/@kreuzberg/liter-llm">
22
+ <img
23
+ src="https://img.shields.io/npm/v/@kreuzberg/liter-llm?label=Node.js&color=007ec6"
24
+ alt="Node.js"
25
+ />
26
+ </a>
27
+ <a href="https://www.npmjs.com/package/@kreuzberg/liter-llm-wasm">
28
+ <img
29
+ src="https://img.shields.io/npm/v/@kreuzberg/liter-llm-wasm?label=WASM&color=007ec6"
30
+ alt="WASM"
31
+ />
32
+ </a>
33
+ <a href="https://central.sonatype.com/artifact/dev.kreuzberg/liter-llm">
34
+ <img
35
+ src="https://img.shields.io/maven-central/v/dev.kreuzberg/liter-llm?label=Java&color=007ec6"
36
+ alt="Java"
37
+ />
38
+ </a>
39
+ <a href="https://github.com/kreuzberg-dev/liter-llm/tree/main/packages/go">
40
+ <img
41
+ src="https://img.shields.io/github/v/tag/kreuzberg-dev/liter-llm?label=Go&color=007ec6"
42
+ alt="Go"
43
+ />
44
+ </a>
45
+ <a href="https://www.nuget.org/packages/LiterLlm">
46
+ <img src="https://img.shields.io/nuget/v/LiterLlm?label=C%23&color=007ec6" alt="C#" />
47
+ </a>
48
+ <a href="https://packagist.org/packages/kreuzberg/liter-llm">
49
+ <img
50
+ src="https://img.shields.io/packagist/v/kreuzberg/liter-llm?label=PHP&color=007ec6"
51
+ alt="PHP"
52
+ />
53
+ </a>
54
+ <a href="https://rubygems.org/gems/liter_llm">
55
+ <img src="https://img.shields.io/gem/v/liter_llm?label=Ruby&color=007ec6" alt="Ruby" />
56
+ </a>
57
+ <a href="https://hex.pm/packages/liter_llm">
58
+ <img src="https://img.shields.io/hexpm/v/liter_llm?label=Elixir&color=007ec6" alt="Elixir" />
59
+ </a>
60
+ <a href="https://github.com/kreuzberg-dev/liter-llm/pkgs/container/liter-llm">
61
+ <img
62
+ src="https://img.shields.io/badge/Docker-007ec6?logo=docker&logoColor=white"
63
+ alt="Docker"
64
+ />
65
+ </a>
66
+ <a href="https://github.com/kreuzberg-dev/homebrew-tap/blob/main/Formula/liter-llm.rb">
67
+ <img
68
+ src="https://img.shields.io/badge/Homebrew-007ec6?logo=homebrew&logoColor=white"
69
+ alt="Homebrew"
70
+ />
71
+ </a>
72
+ <a href="https://github.com/kreuzberg-dev/liter-llm/tree/main/crates/liter-llm-ffi">
73
+ <img src="https://img.shields.io/badge/C-FFI-007ec6" alt="C FFI" />
74
+ </a>
75
+
76
+ <!-- Project Info -->
77
+ <a href="https://github.com/kreuzberg-dev/liter-llm/blob/main/LICENSE">
78
+ <img src="https://img.shields.io/badge/License-MIT-007ec6" alt="License" />
79
+ </a>
80
+ <a href="https://docs.liter-llm.kreuzberg.dev">
81
+ <img src="https://img.shields.io/badge/docs-kreuzberg.dev-007ec6" alt="Docs" />
82
+ </a>
56
83
  </div>
57
- <div align="center" style="margin: 24px 0 0">
58
- <a href="https://kreuzberg.dev">
59
- <img
60
- alt="kreuzberg.dev"
61
- src="https://github.com/user-attachments/assets/1b6c6ad7-3b6d-4171-b1c9-f2026cc9deb8"
62
- />
63
- </a>
84
+ <div align="center" style="margin: 20px 0">
85
+ <picture>
86
+ <img
87
+ width="100%"
88
+ alt="kreuzberg.dev"
89
+ src="https://github.com/user-attachments/assets/1b6c6ad7-3b6d-4171-b1c9-f2026cc9deb8"
90
+ />
91
+ </picture>
64
92
  </div>
65
- <div align="center" style="display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 24px">
66
- <a href="https://discord.gg/xt9WY3GnKR">
67
- <img
68
- height="22"
69
- src="https://img.shields.io/badge/Discord-Chat-007ec6?logo=discord&logoColor=white"
70
- alt="Join Discord"
71
- />
72
- </a>
93
+ <div align="center" style="margin-bottom: 20px">
94
+ <a href="https://discord.gg/xt9WY3GnKR">
95
+ <img
96
+ height="22"
97
+ src="https://img.shields.io/badge/Discord-Join%20our%20community-7289da?logo=discord&logoColor=white"
98
+ alt="Discord"
99
+ />
100
+ </a>
73
101
  </div>
74
102
 
75
103
  Universal LLM API client for Ruby. Access 143+ LLM providers through a single interface with idiomatic Ruby API and native performance.
76
104
 
77
- ## What This Package Provides
78
-
79
- - **One provider surface** — chat, streaming, embeddings, images, audio, search, OCR, tools, and structured output across the provider registry.
80
- - **Provider/model routing** — call models with the `provider/model` convention and keep provider-specific request code out of application paths.
81
- - **Production controls** — retries, fallback, rate limits, cache layers, budgets, health checks, OpenTelemetry spans, and redacted secrets.
82
- - **Same core as every binding** — Rust, Python, Node.js, Go, Java, PHP, Ruby, .NET, Elixir, WASM, Kotlin Android, Swift, Dart, Zig, and C FFI use the same Rust implementation.
83
- - **Ruby package** — native extension with idiomatic Ruby request and response objects.
84
-
85
105
  ## Installation
86
106
 
87
107
  ### Package Installation
88
108
 
109
+
89
110
  Install via one of the supported package managers:
90
111
 
112
+
91
113
  **gem:**
92
114
 
93
115
  ```bash
94
116
  gem install liter_llm
95
117
  ```
96
118
 
119
+
97
120
  **Bundler:**
98
121
 
99
122
  ```ruby
100
123
  gem 'liter_llm'
101
124
  ```
102
125
 
126
+
103
127
  ### System Requirements
104
128
 
129
+
105
130
  - **Ruby 3.2+** required
106
131
  - API keys via environment variables (e.g. `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`)
107
132
 
133
+
108
134
  ## Quick Start
109
135
 
110
136
  ### Basic Chat
@@ -130,6 +156,7 @@ puts result.choices[0].message.content
130
156
 
131
157
  ### Common Use Cases
132
158
 
159
+
133
160
  #### Streaming Responses
134
161
 
135
162
  Stream tokens in real time:
@@ -154,11 +181,13 @@ end
154
181
  puts
155
182
  ```
156
183
 
184
+
157
185
  ### Next Steps
158
186
 
159
187
  - **[Provider Registry](https://github.com/kreuzberg-dev/liter-llm/blob/main/schemas/providers.json)** - Full list of supported providers
160
188
  - **[GitHub Repository](https://github.com/kreuzberg-dev/liter-llm)** - Source, issues, and discussions
161
189
 
190
+
162
191
  ## Features
163
192
 
164
193
  ### Supported Providers (143+)
@@ -184,8 +213,12 @@ Route to any provider using the `provider/model` prefix convention:
184
213
  - **Provider Routing** -- Single client for 143+ LLM providers via `provider/model` prefix
185
214
  - **Local LLMs** — Connect to locally-hosted models via Ollama, LM Studio, vLLM, llama.cpp, and other local inference servers
186
215
  - **Unified API** -- Consistent `chat`, `chat_stream`, `embeddings`, `list_models` interface
216
+
187
217
  - **Streaming** -- Real-time token streaming via `chat_stream`
218
+
219
+
188
220
  - **Tool Calling** -- Function calling and tool use across all supporting providers
221
+
189
222
  - **Type Safe** -- Schema-driven types compiled from JSON schemas
190
223
  - **Secure** -- API keys never logged or serialized, managed via environment variables
191
224
  - **Observability** -- Built-in [OpenTelemetry](https://opentelemetry.io/docs/specs/semconv/gen-ai/) with GenAI semantic conventions
@@ -200,6 +233,7 @@ Built on a compiled Rust core for speed and safety:
200
233
  - **Zero-copy streaming** with SSE and AWS EventStream support
201
234
  - **API keys** wrapped in secure memory, zeroed on drop
202
235
 
236
+
203
237
  ## Provider Routing
204
238
 
205
239
  Route to 143+ providers using the `provider/model` prefix convention:
@@ -213,6 +247,7 @@ mistral/mistral-large-latest
213
247
 
214
248
  See the [provider registry](https://github.com/kreuzberg-dev/liter-llm/blob/main/schemas/providers.json) for the full list.
215
249
 
250
+
216
251
  ## Proxy Server
217
252
 
218
253
  liter-llm also ships as an OpenAI-compatible proxy server with Docker support:
@@ -221,7 +256,7 @@ liter-llm also ships as an OpenAI-compatible proxy server with Docker support:
221
256
  docker run -p 4000:4000 -e LITER_LLM_MASTER_KEY=sk-your-key ghcr.io/kreuzberg-dev/liter-llm
222
257
  ```
223
258
 
224
- See the [proxy server documentation](https://docs.liter-llm.kreuzberg.dev/server/proxy-server/) for configuration, CLI usage, and MCP integration.
259
+ See the [proxy server documentation](https://docs.liter-llm.kreuzberg.dev/server/proxy/) for configuration, CLI usage, and MCP integration.
225
260
 
226
261
  ## Documentation
227
262
 
@@ -231,7 +266,7 @@ See the [proxy server documentation](https://docs.liter-llm.kreuzberg.dev/server
231
266
 
232
267
  ## Part of Kreuzberg.dev
233
268
 
234
- - [Kreuzberg](https://github.com/kreuzberg-dev/kreuzberg) — document intelligence: text, tables, metadata from 90+ formats with optional OCR.
269
+ - [Kreuzberg](https://github.com/kreuzberg-dev/kreuzberg) — document intelligence: text, tables, metadata from 91+ formats with optional OCR.
235
270
  - [Kreuzberg Cloud](https://github.com/kreuzberg-dev/kreuzberg-cloud) — managed extraction API with SDKs, dashboards, and observability.
236
271
  - [kreuzcrawl](https://github.com/kreuzberg-dev/kreuzcrawl) — web crawling and scraping with HTML→Markdown and headless-Chrome fallback.
237
272
  - [html-to-markdown](https://github.com/kreuzberg-dev/html-to-markdown) — fast, lossless HTML→Markdown engine.
@@ -145,7 +145,7 @@ dependencies = [
145
145
  "hex",
146
146
  "hmac 0.13.0",
147
147
  "http 0.2.12",
148
- "http 1.4.1",
148
+ "http 1.4.2",
149
149
  "percent-encoding",
150
150
  "sha2 0.11.0",
151
151
  "time",
@@ -175,7 +175,7 @@ dependencies = [
175
175
  "bytes-utils",
176
176
  "futures-core",
177
177
  "futures-util",
178
- "http 1.4.1",
178
+ "http 1.4.2",
179
179
  "http-body 1.0.1",
180
180
  "http-body-util",
181
181
  "percent-encoding",
@@ -195,7 +195,7 @@ dependencies = [
195
195
  "aws-smithy-types",
196
196
  "bytes",
197
197
  "http 0.2.12",
198
- "http 1.4.1",
198
+ "http 1.4.2",
199
199
  "pin-project-lite",
200
200
  "tokio",
201
201
  "tracing",
@@ -215,15 +215,15 @@ dependencies = [
215
215
 
216
216
  [[package]]
217
217
  name = "aws-smithy-types"
218
- version = "1.4.9"
218
+ version = "1.5.0"
219
219
  source = "registry+https://github.com/rust-lang/crates.io-index"
220
- checksum = "53f93074121a1be41317b9aa607143ae17900631f7f59a99f2b905d519d6783b"
220
+ checksum = "32b42fcf341259d85ca10fac9a2f6448a8ec691c6955a18e45bc3b71a85fab85"
221
221
  dependencies = [
222
222
  "base64-simd",
223
223
  "bytes",
224
224
  "bytes-utils",
225
225
  "http 0.2.12",
226
- "http 1.4.1",
226
+ "http 1.4.2",
227
227
  "http-body 0.4.6",
228
228
  "http-body 1.0.1",
229
229
  "http-body-util",
@@ -323,9 +323,9 @@ dependencies = [
323
323
 
324
324
  [[package]]
325
325
  name = "block-buffer"
326
- version = "0.12.0"
326
+ version = "0.12.1"
327
327
  source = "registry+https://github.com/rust-lang/crates.io-index"
328
- checksum = "cdd35008169921d80bc60d3d0ab416eecb028c4cd653352907921d95084790be"
328
+ checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa"
329
329
  dependencies = [
330
330
  "hybrid-array",
331
331
  ]
@@ -387,9 +387,9 @@ dependencies = [
387
387
 
388
388
  [[package]]
389
389
  name = "cc"
390
- version = "1.2.63"
390
+ version = "1.2.64"
391
391
  source = "registry+https://github.com/rust-lang/crates.io-index"
392
- checksum = "556e016178bb5662a08681bbe0f00f8e17631781a4dfc8c45e466e4b185ec27f"
392
+ checksum = "dad887fd958be91b5098c0248def011f4523ab786cd411be668777e55063501f"
393
393
  dependencies = [
394
394
  "find-msvc-tools",
395
395
  "shlex 2.0.1",
@@ -801,7 +801,7 @@ version = "0.11.3"
801
801
  source = "registry+https://github.com/rust-lang/crates.io-index"
802
802
  checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2"
803
803
  dependencies = [
804
- "block-buffer 0.12.0",
804
+ "block-buffer 0.12.1",
805
805
  "const-oid 0.10.2",
806
806
  "crypto-common 0.2.2",
807
807
  "ctutils",
@@ -1080,7 +1080,7 @@ dependencies = [
1080
1080
  "base64 0.22.1",
1081
1081
  "bytes",
1082
1082
  "chrono",
1083
- "http 1.4.1",
1083
+ "http 1.4.2",
1084
1084
  "http-body-util",
1085
1085
  "hyper",
1086
1086
  "hyper-rustls",
@@ -1159,7 +1159,7 @@ dependencies = [
1159
1159
  "fnv",
1160
1160
  "futures-core",
1161
1161
  "futures-sink",
1162
- "http 1.4.1",
1162
+ "http 1.4.2",
1163
1163
  "indexmap",
1164
1164
  "slab",
1165
1165
  "tokio",
@@ -1207,7 +1207,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
1207
1207
  checksum = "629d8f3bbeda9d148036d6b0de0a3ab947abd08ce90626327fc3547a49d59d97"
1208
1208
  dependencies = [
1209
1209
  "dirs",
1210
- "http 1.4.1",
1210
+ "http 1.4.2",
1211
1211
  "indicatif",
1212
1212
  "libc",
1213
1213
  "log",
@@ -1250,9 +1250,9 @@ dependencies = [
1250
1250
 
1251
1251
  [[package]]
1252
1252
  name = "http"
1253
- version = "1.4.1"
1253
+ version = "1.4.2"
1254
1254
  source = "registry+https://github.com/rust-lang/crates.io-index"
1255
- checksum = "8be7462df143984c4598a256ef469b251d7d7f9e271135073e78fc535414f3d0"
1255
+ checksum = "6970f50e31d6fc17d3fa27329444bfa74e196cf62e95052a3f6fee181dba6425"
1256
1256
  dependencies = [
1257
1257
  "bytes",
1258
1258
  "itoa",
@@ -1276,7 +1276,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
1276
1276
  checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"
1277
1277
  dependencies = [
1278
1278
  "bytes",
1279
- "http 1.4.1",
1279
+ "http 1.4.2",
1280
1280
  ]
1281
1281
 
1282
1282
  [[package]]
@@ -1287,7 +1287,7 @@ checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a"
1287
1287
  dependencies = [
1288
1288
  "bytes",
1289
1289
  "futures-core",
1290
- "http 1.4.1",
1290
+ "http 1.4.2",
1291
1291
  "http-body 1.0.1",
1292
1292
  "pin-project-lite",
1293
1293
  ]
@@ -1318,7 +1318,7 @@ dependencies = [
1318
1318
  "futures-channel",
1319
1319
  "futures-core",
1320
1320
  "h2",
1321
- "http 1.4.1",
1321
+ "http 1.4.2",
1322
1322
  "http-body 1.0.1",
1323
1323
  "httparse",
1324
1324
  "itoa",
@@ -1334,7 +1334,7 @@ version = "0.27.9"
1334
1334
  source = "registry+https://github.com/rust-lang/crates.io-index"
1335
1335
  checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f"
1336
1336
  dependencies = [
1337
- "http 1.4.1",
1337
+ "http 1.4.2",
1338
1338
  "hyper",
1339
1339
  "hyper-util",
1340
1340
  "rustls",
@@ -1370,7 +1370,7 @@ dependencies = [
1370
1370
  "bytes",
1371
1371
  "futures-channel",
1372
1372
  "futures-util",
1373
- "http 1.4.1",
1373
+ "http 1.4.2",
1374
1374
  "http-body 1.0.1",
1375
1375
  "hyper",
1376
1376
  "ipnet",
@@ -1681,13 +1681,12 @@ dependencies = [
1681
1681
 
1682
1682
  [[package]]
1683
1683
  name = "js-sys"
1684
- version = "0.3.99"
1684
+ version = "0.3.102"
1685
1685
  source = "registry+https://github.com/rust-lang/crates.io-index"
1686
- checksum = "142bc4740e452c1e57ade0cbc129f139c9093e354346f0872ef985f4f5cf5f11"
1686
+ checksum = "03d04c30968dffe80775bd4d7fb676131cd04a1fb46d2686dbffbaec2d9dfd31"
1687
1687
  dependencies = [
1688
1688
  "cfg-if",
1689
1689
  "futures-util",
1690
- "once_cell",
1691
1690
  "wasm-bindgen",
1692
1691
  ]
1693
1692
 
@@ -1768,9 +1767,9 @@ checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
1768
1767
 
1769
1768
  [[package]]
1770
1769
  name = "liter-llm"
1771
- version = "1.5.0"
1770
+ version = "1.5.1"
1772
1771
  source = "registry+https://github.com/rust-lang/crates.io-index"
1773
- checksum = "442609bd522ffd20983c7c9b852c1f33a6490d8dddb1b566f2c40960026db1e8"
1772
+ checksum = "031590859d28702ccb2ef27ead7d18072b1581827fc4e5d6433b945d547deb30"
1774
1773
  dependencies = [
1775
1774
  "aws-credential-types",
1776
1775
  "aws-sigv4",
@@ -1803,7 +1802,7 @@ dependencies = [
1803
1802
 
1804
1803
  [[package]]
1805
1804
  name = "liter-llm-rb"
1806
- version = "1.5.0"
1805
+ version = "1.5.1"
1807
1806
  dependencies = [
1808
1807
  "futures",
1809
1808
  "liter-llm",
@@ -1889,9 +1888,9 @@ dependencies = [
1889
1888
 
1890
1889
  [[package]]
1891
1890
  name = "memchr"
1892
- version = "2.8.1"
1891
+ version = "2.8.2"
1893
1892
  source = "registry+https://github.com/rust-lang/crates.io-index"
1894
- checksum = "6b947ae49db0d222b1dbc6b113ce7248a3fc3a6ca21b696717bfc000ba4484d8"
1893
+ checksum = "88904434abc2901f197fe8cc55f0445e7ded921dba5911dad2e2b39b48e663c4"
1895
1894
 
1896
1895
  [[package]]
1897
1896
  name = "mime"
@@ -2081,7 +2080,7 @@ dependencies = [
2081
2080
  "base64 0.22.1",
2082
2081
  "bytes",
2083
2082
  "futures",
2084
- "http 1.4.1",
2083
+ "http 1.4.2",
2085
2084
  "http-body 1.0.1",
2086
2085
  "jiff",
2087
2086
  "log",
@@ -2121,7 +2120,7 @@ checksum = "8d4346d72c6c1c61d0fa5affaefe5e7180fd3bdde7608411f4b6264ab1a01c34"
2121
2120
  dependencies = [
2122
2121
  "bytes",
2123
2122
  "fastpool",
2124
- "http 1.4.1",
2123
+ "http 1.4.2",
2125
2124
  "opendal-core",
2126
2125
  "redis",
2127
2126
  "serde",
@@ -2137,7 +2136,7 @@ dependencies = [
2137
2136
  "base64 0.22.1",
2138
2137
  "bytes",
2139
2138
  "crc32c",
2140
- "http 1.4.1",
2139
+ "http 1.4.2",
2141
2140
  "log",
2142
2141
  "md-5",
2143
2142
  "opendal-core",
@@ -2151,9 +2150,9 @@ dependencies = [
2151
2150
 
2152
2151
  [[package]]
2153
2152
  name = "openssl"
2154
- version = "0.10.80"
2153
+ version = "0.10.81"
2155
2154
  source = "registry+https://github.com/rust-lang/crates.io-index"
2156
- checksum = "a45fa2aa886c42762255da344f0a0d313e254066c46aad76f300c3d3da62d967"
2155
+ checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45"
2157
2156
  dependencies = [
2158
2157
  "bitflags",
2159
2158
  "cfg-if",
@@ -2182,9 +2181,9 @@ checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
2182
2181
 
2183
2182
  [[package]]
2184
2183
  name = "openssl-sys"
2185
- version = "0.9.116"
2184
+ version = "0.9.117"
2186
2185
  source = "registry+https://github.com/rust-lang/crates.io-index"
2187
- checksum = "f28a22dc7140cda5f096e5e7724a6962ca81a7f8bfd2979f9b18c11af56318c4"
2186
+ checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695"
2188
2187
  dependencies = [
2189
2188
  "cc",
2190
2189
  "libc",
@@ -2648,9 +2647,9 @@ dependencies = [
2648
2647
 
2649
2648
  [[package]]
2650
2649
  name = "regex"
2651
- version = "1.12.3"
2650
+ version = "1.12.4"
2652
2651
  source = "registry+https://github.com/rust-lang/crates.io-index"
2653
- checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
2652
+ checksum = "f1292b7759ae1cb9ec195452d1390a074f0cd8541ab7a5a8c31cd6db45d4a6ba"
2654
2653
  dependencies = [
2655
2654
  "aho-corasick",
2656
2655
  "memchr",
@@ -2671,9 +2670,9 @@ dependencies = [
2671
2670
 
2672
2671
  [[package]]
2673
2672
  name = "regex-syntax"
2674
- version = "0.8.10"
2673
+ version = "0.8.11"
2675
2674
  source = "registry+https://github.com/rust-lang/crates.io-index"
2676
- checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"
2675
+ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
2677
2676
 
2678
2677
  [[package]]
2679
2678
  name = "reqsign-aws-v4"
@@ -2685,7 +2684,7 @@ dependencies = [
2685
2684
  "bytes",
2686
2685
  "form_urlencoded",
2687
2686
  "hex",
2688
- "http 1.4.1",
2687
+ "http 1.4.2",
2689
2688
  "log",
2690
2689
  "percent-encoding",
2691
2690
  "quick-xml 0.40.1",
@@ -2710,7 +2709,7 @@ dependencies = [
2710
2709
  "futures",
2711
2710
  "hex",
2712
2711
  "hmac 0.13.0",
2713
- "http 1.4.1",
2712
+ "http 1.4.2",
2714
2713
  "jiff",
2715
2714
  "log",
2716
2715
  "percent-encoding",
@@ -2743,7 +2742,7 @@ dependencies = [
2743
2742
  "bytes",
2744
2743
  "futures-core",
2745
2744
  "futures-util",
2746
- "http 1.4.1",
2745
+ "http 1.4.2",
2747
2746
  "http-body 1.0.1",
2748
2747
  "http-body-util",
2749
2748
  "hyper",
@@ -3217,9 +3216,9 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
3217
3216
 
3218
3217
  [[package]]
3219
3218
  name = "smallvec"
3220
- version = "1.15.1"
3219
+ version = "1.15.2"
3221
3220
  source = "registry+https://github.com/rust-lang/crates.io-index"
3222
- checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
3221
+ checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
3223
3222
 
3224
3223
  [[package]]
3225
3224
  name = "socket2"
@@ -3579,7 +3578,7 @@ dependencies = [
3579
3578
  "bytes",
3580
3579
  "futures-core",
3581
3580
  "futures-util",
3582
- "http 1.4.1",
3581
+ "http 1.4.2",
3583
3582
  "http-body 1.0.1",
3584
3583
  "http-body-util",
3585
3584
  "pin-project-lite",
@@ -3787,9 +3786,9 @@ checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
3787
3786
 
3788
3787
  [[package]]
3789
3788
  name = "uuid"
3790
- version = "1.23.2"
3789
+ version = "1.23.3"
3791
3790
  source = "registry+https://github.com/rust-lang/crates.io-index"
3792
- checksum = "d258b83ceec21034727ecee8c382cfa6c3e133699b0742c64571814fb420c9f7"
3791
+ checksum = "144d6b123cef80b301b8f72a9e2ca4370ddec21950d0a103dd22c437006d2db7"
3793
3792
  dependencies = [
3794
3793
  "getrandom 0.4.2",
3795
3794
  "js-sys",
@@ -3848,9 +3847,9 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
3848
3847
 
3849
3848
  [[package]]
3850
3849
  name = "wasip2"
3851
- version = "1.0.3+wasi-0.2.9"
3850
+ version = "1.0.4+wasi-0.2.12"
3852
3851
  source = "registry+https://github.com/rust-lang/crates.io-index"
3853
- checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6"
3852
+ checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
3854
3853
  dependencies = [
3855
3854
  "wit-bindgen 0.57.1",
3856
3855
  ]
@@ -3866,9 +3865,9 @@ dependencies = [
3866
3865
 
3867
3866
  [[package]]
3868
3867
  name = "wasm-bindgen"
3869
- version = "0.2.122"
3868
+ version = "0.2.125"
3870
3869
  source = "registry+https://github.com/rust-lang/crates.io-index"
3871
- checksum = "3ed04576f974d2b2fba0f38c51dbc5518011e38c36bf1143164be765528fd409"
3870
+ checksum = "8ddb3f79143bced6de84270411622a2699cee572fc0875aeaf1e7867cf9fca1a"
3872
3871
  dependencies = [
3873
3872
  "cfg-if",
3874
3873
  "once_cell",
@@ -3879,9 +3878,9 @@ dependencies = [
3879
3878
 
3880
3879
  [[package]]
3881
3880
  name = "wasm-bindgen-futures"
3882
- version = "0.4.72"
3881
+ version = "0.4.75"
3883
3882
  source = "registry+https://github.com/rust-lang/crates.io-index"
3884
- checksum = "9473dbd2991ae90b6291c3c32c30c6187ac49aa32f9905d1cce280ec1e110b0f"
3883
+ checksum = "503b14d284f2c8dac03b819967e155ea753f573586193b2b2c95990cb5d69280"
3885
3884
  dependencies = [
3886
3885
  "js-sys",
3887
3886
  "wasm-bindgen",
@@ -3889,9 +3888,9 @@ dependencies = [
3889
3888
 
3890
3889
  [[package]]
3891
3890
  name = "wasm-bindgen-macro"
3892
- version = "0.2.122"
3891
+ version = "0.2.125"
3893
3892
  source = "registry+https://github.com/rust-lang/crates.io-index"
3894
- checksum = "916151b09da36bd82f6615cbf3a419e2f0ba23a03c6160e8e92eb6bd4aa1dec6"
3893
+ checksum = "4e21a184b13fb19e157296e2c46056aec9092264fab83e4ba59e68c61b323c3d"
3895
3894
  dependencies = [
3896
3895
  "quote",
3897
3896
  "wasm-bindgen-macro-support",
@@ -3899,9 +3898,9 @@ dependencies = [
3899
3898
 
3900
3899
  [[package]]
3901
3900
  name = "wasm-bindgen-macro-support"
3902
- version = "0.2.122"
3901
+ version = "0.2.125"
3903
3902
  source = "registry+https://github.com/rust-lang/crates.io-index"
3904
- checksum = "299047362ccbfce148b67ab7e73349f77748e00c8296f9542adfad2ad82c5c5e"
3903
+ checksum = "fecefd9c35bd935a20fc3fc344b5f29138961e4f47fb03297d88f2587afb5ebd"
3905
3904
  dependencies = [
3906
3905
  "bumpalo",
3907
3906
  "proc-macro2",
@@ -3912,9 +3911,9 @@ dependencies = [
3912
3911
 
3913
3912
  [[package]]
3914
3913
  name = "wasm-bindgen-shared"
3915
- version = "0.2.122"
3914
+ version = "0.2.125"
3916
3915
  source = "registry+https://github.com/rust-lang/crates.io-index"
3917
- checksum = "9a929b2c61f11ba3e9bc35b50c1f25cb38e0e892c0c231ae2b8cf78d5dad4437"
3916
+ checksum = "23939e44bb9a5d7576fa2b563dc2e136628f1224e88a8deed09e04858b77871f"
3918
3917
  dependencies = [
3919
3918
  "unicode-ident",
3920
3919
  ]
@@ -3968,9 +3967,9 @@ dependencies = [
3968
3967
 
3969
3968
  [[package]]
3970
3969
  name = "web-sys"
3971
- version = "0.3.99"
3970
+ version = "0.3.102"
3972
3971
  source = "registry+https://github.com/rust-lang/crates.io-index"
3973
- checksum = "6d621441cfc37b84979402712047321980c178f299193a3589d05b99e8763436"
3972
+ checksum = "a6430a72df5eb332242960fe84b3002a241163998241eb596d4f739b9757061d"
3974
3973
  dependencies = [
3975
3974
  "js-sys",
3976
3975
  "wasm-bindgen",
@@ -4415,18 +4414,18 @@ dependencies = [
4415
4414
 
4416
4415
  [[package]]
4417
4416
  name = "zerocopy"
4418
- version = "0.8.50"
4417
+ version = "0.8.52"
4419
4418
  source = "registry+https://github.com/rust-lang/crates.io-index"
4420
- checksum = "3b065d4f0e55f82fae73202e189638116a87c55ab6b8e6c2721e13dd9d854ad1"
4419
+ checksum = "ce1022995ff5ff5d841ad7d994facc23098cd40152f2c1d11cd607c6f530653f"
4421
4420
  dependencies = [
4422
4421
  "zerocopy-derive",
4423
4422
  ]
4424
4423
 
4425
4424
  [[package]]
4426
4425
  name = "zerocopy-derive"
4427
- version = "0.8.50"
4426
+ version = "0.8.52"
4428
4427
  source = "registry+https://github.com/rust-lang/crates.io-index"
4429
- checksum = "0b631b19d36a892ab55420c92dbc83ccd79274f25be714855d3074aa71cab639"
4428
+ checksum = "1ae7f38b72ec2a254e2b87ef277cf2cd4fb97cbebf944faa6f33354da0867930"
4430
4429
  dependencies = [
4431
4430
  "proc-macro2",
4432
4431
  "quote",
@@ -4456,18 +4455,18 @@ dependencies = [
4456
4455
 
4457
4456
  [[package]]
4458
4457
  name = "zeroize"
4459
- version = "1.8.2"
4458
+ version = "1.9.0"
4460
4459
  source = "registry+https://github.com/rust-lang/crates.io-index"
4461
- checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"
4460
+ checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"
4462
4461
  dependencies = [
4463
4462
  "zeroize_derive",
4464
4463
  ]
4465
4464
 
4466
4465
  [[package]]
4467
4466
  name = "zeroize_derive"
4468
- version = "1.4.3"
4467
+ version = "1.5.0"
4469
4468
  source = "registry+https://github.com/rust-lang/crates.io-index"
4470
- checksum = "85a5b4158499876c763cb03bc4e49185d3cccbabb15b33c627f7884f43db852e"
4469
+ checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328"
4471
4470
  dependencies = [
4472
4471
  "proc-macro2",
4473
4472
  "quote",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "liter-llm-rb"
3
- version = "1.5.0"
3
+ version = "1.5.1"
4
4
  edition = "2024"
5
5
  license = "MIT"
6
6
  description = "Universal LLM API client with Rust-powered polyglot bindings."
@@ -18,7 +18,7 @@ crate-type = ["cdylib"]
18
18
 
19
19
  [dependencies]
20
20
  futures = "0.3"
21
- liter-llm = { version = "1.5.0", features = ["native-http", "full"] }
21
+ liter-llm = { version = "1.5.1", features = ["native-http", "full"] }
22
22
  magnus = "0.8"
23
23
  rb-sys = ">=0.9, <0.9.128"
24
24
  serde = { version = "1", features = ["derive"] }
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by alef. DO NOT EDIT.
2
- // alef:hash:93a82f0d43d1c6af3f54574908a88a952d597f9e2cca238de810ede5a8948e48
2
+ // alef:hash:fe64a8a06beeb01b5344005fa07dcdfdf3e244d772ace0f89dbba84b0541ca2d
3
3
  // Re-generate with: alef generate
4
4
  #![allow(dead_code, unused_imports, unused_variables)]
5
5
  #![allow(
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:93a82f0d43d1c6af3f54574908a88a952d597f9e2cca238de810ede5a8948e48
2
+ # alef:hash:fe64a8a06beeb01b5344005fa07dcdfdf3e244d772ace0f89dbba84b0541ca2d
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
  # frozen_string_literal: true
@@ -1,10 +1,10 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:93a82f0d43d1c6af3f54574908a88a952d597f9e2cca238de810ede5a8948e48
2
+ # alef:hash:fe64a8a06beeb01b5344005fa07dcdfdf3e244d772ace0f89dbba84b0541ca2d
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
  # frozen_string_literal: true
6
6
 
7
7
  module LiterLlm
8
8
  ## The version string for this package.
9
- VERSION = "1.5.0"
9
+ VERSION = "1.5.1"
10
10
  end
data/lib/liter_llm.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:93a82f0d43d1c6af3f54574908a88a952d597f9e2cca238de810ede5a8948e48
2
+ # alef:hash:fe64a8a06beeb01b5344005fa07dcdfdf3e244d772ace0f89dbba84b0541ca2d
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
  # frozen_string_literal: true
data/sig/types.rbs CHANGED
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:93a82f0d43d1c6af3f54574908a88a952d597f9e2cca238de810ede5a8948e48
2
+ # alef:hash:fe64a8a06beeb01b5344005fa07dcdfdf3e244d772ace0f89dbba84b0541ca2d
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liter_llm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Na'aman Hirschfeld
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-08 00:00:00.000000000 Z
11
+ date: 2026-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys
@@ -78,6 +78,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  - - ">="
79
79
  - !ruby/object:Gem::Version
80
80
  version: 3.2.0
81
+ - - "<"
82
+ - !ruby/object:Gem::Version
83
+ version: '4.0'
81
84
  required_rubygems_version: !ruby/object:Gem::Requirement
82
85
  requirements:
83
86
  - - ">="