liter_llm 1.18.3 → 1.18.4
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 +4 -4
- data/README.md +1 -1
- data/ext/liter_llm_rb/native/Cargo.lock +7 -7
- data/ext/liter_llm_rb/native/Cargo.toml +3 -3
- data/ext/liter_llm_rb/native/extconf.rb +1 -1
- data/ext/liter_llm_rb/src/lib.rs +12 -15
- data/lib/liter_llm/native.rb +1 -1
- data/lib/liter_llm/version.rb +2 -2
- data/lib/liter_llm.rb +1 -1
- data/sig/types.rbs +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a53773d49b20f83cdc7b3f35895ad6475e022993ed72839310919c9ac1a27ced
|
|
4
|
+
data.tar.gz: 01a633009b5c24055960458bf31810bcb02a313b99c4ab2c8e51495eb9199f67
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f113b044e753409dd05b460be8eb7be65806a10665ece2efc40ebf0483b2c1abe3abc2972af55428703eca52275d84039f478998fa2d2db70b88242b95f5fce5
|
|
7
|
+
data.tar.gz: 32eaabfc2b5c04662993e07f478073ce702a4dc42c840e1cb9b0c801ebf4ec358fa77a97db0eca99ef1aaf23f9d25973840f0c591fa8e0ed4f53f5cb03829812
|
data/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!-- This file is auto-generated by alef — DO NOT EDIT. -->
|
|
2
|
-
<!-- alef:hash:
|
|
2
|
+
<!-- alef:hash:e759af20a292f212106d6864b4d2a2620b975fa753d7b25c17e2c9c9e07d3820 -->
|
|
3
3
|
<!-- To regenerate: alef readme -->
|
|
4
4
|
<!-- To verify freshness: alef verify -->
|
|
5
5
|
|
|
@@ -471,9 +471,9 @@ checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"
|
|
|
471
471
|
|
|
472
472
|
[[package]]
|
|
473
473
|
name = "chacha20"
|
|
474
|
-
version = "0.10.
|
|
474
|
+
version = "0.10.2"
|
|
475
475
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
476
|
-
checksum = "
|
|
476
|
+
checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"
|
|
477
477
|
dependencies = [
|
|
478
478
|
"cfg-if",
|
|
479
479
|
"cpufeatures",
|
|
@@ -614,9 +614,9 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
|
|
|
614
614
|
|
|
615
615
|
[[package]]
|
|
616
616
|
name = "cpufeatures"
|
|
617
|
-
version = "0.3.
|
|
617
|
+
version = "0.3.1"
|
|
618
618
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
619
|
-
checksum = "
|
|
619
|
+
checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"
|
|
620
620
|
dependencies = [
|
|
621
621
|
"libc",
|
|
622
622
|
]
|
|
@@ -1794,9 +1794,9 @@ checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
|
|
|
1794
1794
|
|
|
1795
1795
|
[[package]]
|
|
1796
1796
|
name = "liter-llm"
|
|
1797
|
-
version = "1.18.
|
|
1797
|
+
version = "1.18.4"
|
|
1798
1798
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1799
|
-
checksum = "
|
|
1799
|
+
checksum = "b01b44e82f70d3953b7fdf286a421fc670ce7909a29a7e9b1ad357d3510927be"
|
|
1800
1800
|
dependencies = [
|
|
1801
1801
|
"ahash 0.8.12",
|
|
1802
1802
|
"arc-swap",
|
|
@@ -1838,7 +1838,7 @@ dependencies = [
|
|
|
1838
1838
|
|
|
1839
1839
|
[[package]]
|
|
1840
1840
|
name = "liter-llm-rb"
|
|
1841
|
-
version = "1.18.
|
|
1841
|
+
version = "1.18.4"
|
|
1842
1842
|
dependencies = [
|
|
1843
1843
|
"futures",
|
|
1844
1844
|
"liter-llm",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:dc1dd410b410960c94b3b562cc0e5a145c291cbd0d5ce2381f3f6b29090421ba
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
|
|
6
6
|
[package]
|
|
7
7
|
name = "liter-llm-rb"
|
|
8
|
-
version = "1.18.
|
|
8
|
+
version = "1.18.4"
|
|
9
9
|
edition = "2024"
|
|
10
10
|
license = "MIT"
|
|
11
11
|
description = "Universal LLM API client with Rust-powered polyglot bindings."
|
|
@@ -31,7 +31,7 @@ wasm-http = ["liter-llm/wasm-http"]
|
|
|
31
31
|
|
|
32
32
|
[dependencies]
|
|
33
33
|
futures = "0.3"
|
|
34
|
-
liter-llm = { version = "1.18.
|
|
34
|
+
liter-llm = { version = "1.18.4", features = ["native-http", "full"] }
|
|
35
35
|
magnus = "0.8"
|
|
36
36
|
rb-sys = ">=0.9, <0.9.128"
|
|
37
37
|
serde = { version = "1", features = ["derive"] }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:b4f1c1f716b847aff1d0159fc442d632e2096849ab7d497eb408146176f6f124
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
|
data/ext/liter_llm_rb/src/lib.rs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by alef. DO NOT EDIT.
|
|
2
|
-
// alef:hash:
|
|
2
|
+
// alef:hash:7ee7af693dbd14cbd12eff9ceb8a299134b2c8d34094c54d7e936a556c61da04
|
|
3
3
|
// Re-generate with: alef generate
|
|
4
4
|
#![allow(dead_code, unused_imports, unused_variables)]
|
|
5
5
|
#![allow(
|
|
@@ -13090,8 +13090,8 @@ impl From<liter_llm::types::AssistantContent> for AssistantContent {
|
|
|
13090
13090
|
impl From<AssistantPart> for liter_llm::types::AssistantPart {
|
|
13091
13091
|
fn from(val: AssistantPart) -> Self {
|
|
13092
13092
|
match val {
|
|
13093
|
-
AssistantPart::Text { text } => Self::Text { text
|
|
13094
|
-
AssistantPart::Refusal { refusal } => Self::Refusal { refusal
|
|
13093
|
+
AssistantPart::Text { text } => Self::Text { text },
|
|
13094
|
+
AssistantPart::Refusal { refusal } => Self::Refusal { refusal },
|
|
13095
13095
|
AssistantPart::OutputImage { image_url } => Self::OutputImage {
|
|
13096
13096
|
image_url: image_url.into(),
|
|
13097
13097
|
},
|
|
@@ -13191,8 +13191,9 @@ impl From<CacheBackend> for liter_llm::CacheBackend {
|
|
|
13191
13191
|
fn from(val: CacheBackend) -> Self {
|
|
13192
13192
|
match val {
|
|
13193
13193
|
CacheBackend::Memory => Self::Memory,
|
|
13194
|
+
#[cfg(feature = "opendal-cache")]
|
|
13194
13195
|
CacheBackend::OpenDal { scheme, config } => Self::OpenDal {
|
|
13195
|
-
scheme
|
|
13196
|
+
scheme,
|
|
13196
13197
|
config: serde_json::from_str(&config).unwrap_or_default(),
|
|
13197
13198
|
},
|
|
13198
13199
|
}
|
|
@@ -13203,6 +13204,7 @@ impl From<liter_llm::CacheBackend> for CacheBackend {
|
|
|
13203
13204
|
fn from(val: liter_llm::CacheBackend) -> Self {
|
|
13204
13205
|
match val {
|
|
13205
13206
|
liter_llm::CacheBackend::Memory => Self::Memory,
|
|
13207
|
+
#[cfg(feature = "opendal-cache")]
|
|
13206
13208
|
liter_llm::CacheBackend::OpenDal { scheme, config } => Self::OpenDal {
|
|
13207
13209
|
scheme: scheme.to_string(),
|
|
13208
13210
|
config: serde_json::to_string(&config).unwrap_or_default(),
|
|
@@ -13224,7 +13226,7 @@ impl From<liter_llm::tower::CircuitState> for CircuitState {
|
|
|
13224
13226
|
impl From<ContentPart> for liter_llm::types::ContentPart {
|
|
13225
13227
|
fn from(val: ContentPart) -> Self {
|
|
13226
13228
|
match val {
|
|
13227
|
-
ContentPart::Text { text } => Self::Text { text
|
|
13229
|
+
ContentPart::Text { text } => Self::Text { text },
|
|
13228
13230
|
ContentPart::ImageUrl { image_url } => Self::ImageUrl {
|
|
13229
13231
|
image_url: image_url.into(),
|
|
13230
13232
|
},
|
|
@@ -13258,13 +13260,11 @@ impl From<liter_llm::types::ContentPart> for ContentPart {
|
|
|
13258
13260
|
impl From<EmbeddingContentPart> for liter_llm::types::EmbeddingContentPart {
|
|
13259
13261
|
fn from(val: EmbeddingContentPart) -> Self {
|
|
13260
13262
|
match val {
|
|
13261
|
-
EmbeddingContentPart::Text { text } => Self::Text { text
|
|
13263
|
+
EmbeddingContentPart::Text { text } => Self::Text { text },
|
|
13262
13264
|
EmbeddingContentPart::ImageUrl { image_url } => Self::ImageUrl {
|
|
13263
13265
|
image_url: image_url.into(),
|
|
13264
13266
|
},
|
|
13265
|
-
EmbeddingContentPart::ImageBase64 { image_base64 } => Self::ImageBase64 {
|
|
13266
|
-
image_base64: image_base64,
|
|
13267
|
-
},
|
|
13267
|
+
EmbeddingContentPart::ImageBase64 { image_base64 } => Self::ImageBase64 { image_base64 },
|
|
13268
13268
|
}
|
|
13269
13269
|
}
|
|
13270
13270
|
}
|
|
@@ -13485,11 +13485,8 @@ impl From<liter_llm::types::ModerationInput> for ModerationInput {
|
|
|
13485
13485
|
impl From<OcrDocument> for liter_llm::types::OcrDocument {
|
|
13486
13486
|
fn from(val: OcrDocument) -> Self {
|
|
13487
13487
|
match val {
|
|
13488
|
-
OcrDocument::Url { url } => Self::Url { url
|
|
13489
|
-
OcrDocument::Base64 { data, media_type } => Self::Base64 {
|
|
13490
|
-
data: data,
|
|
13491
|
-
media_type: media_type,
|
|
13492
|
-
},
|
|
13488
|
+
OcrDocument::Url { url } => Self::Url { url },
|
|
13489
|
+
OcrDocument::Base64 { data, media_type } => Self::Base64 { data, media_type },
|
|
13493
13490
|
}
|
|
13494
13491
|
}
|
|
13495
13492
|
}
|
|
@@ -13554,7 +13551,7 @@ impl From<RerankDocument> for liter_llm::types::RerankDocument {
|
|
|
13554
13551
|
fn from(val: RerankDocument) -> Self {
|
|
13555
13552
|
match val {
|
|
13556
13553
|
RerankDocument::Text(_0) => Self::Text(_0),
|
|
13557
|
-
RerankDocument::Object { text } => Self::Object { text
|
|
13554
|
+
RerankDocument::Object { text } => Self::Object { text },
|
|
13558
13555
|
}
|
|
13559
13556
|
}
|
|
13560
13557
|
}
|
data/lib/liter_llm/native.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:7741a503ea5d9c58eaf8bc26506efdb605765d05e5cf3030e50b7ac601e9d829
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
data/lib/liter_llm/version.rb
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:1b3fc99246e041a1e9944e3250319ea8856ad5f7bfd6ce00cdbe6ac1f704f3fe
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
|
6
6
|
|
|
7
7
|
module LiterLlm
|
|
8
8
|
## The version string for this package.
|
|
9
|
-
VERSION = "1.18.
|
|
9
|
+
VERSION = "1.18.4"
|
|
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:
|
|
2
|
+
# alef:hash:b8a978bf498772e4defbba7bc214e470a855255e5d22eb772bc89b8ccb16b88b
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
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:
|
|
2
|
+
# alef:hash:2c4e23900a6d739df8c41fa82bcf1fb95bdc6ce16fd9870d19f1498c0a97f4ca
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
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.18.
|
|
4
|
+
version: 1.18.4
|
|
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-08-
|
|
11
|
+
date: 2026-08-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rb_sys
|