liter_llm 2.1.0 → 2.1.2
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/ext/liter_llm_rb/native/Cargo.lock +38 -37
- data/ext/liter_llm_rb/native/Cargo.toml +3 -3
- data/ext/liter_llm_rb/src/lib.rs +47 -16
- data/lib/liter_llm/version.rb +2 -2
- 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: 29301207ffd2e15e1e4d8dd20408ea956e27c425110399ed515902c5140c071b
|
|
4
|
+
data.tar.gz: f4144e677a0e0663b22ee8eb7c1dabe2f2bbb02b32969d619bbbe4cdc04d190a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a02131cb1ac63a9200a6e8b24518e22ef6a2525866148793689891e52376c8f9670152b24e3530f2225a4f717667e42a0f1ee947d344da75a2be40a96b788c87
|
|
7
|
+
data.tar.gz: b0ec9e55bceb8776be53be8e33fffd2bf8760e82cfa7ba79e49eea6e9ce9b8ae318b4a61f956b55c6c9bd6fc24428a1e1faf27117bb9cfa8547d57db4372b71a
|
|
@@ -69,9 +69,9 @@ checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"
|
|
|
69
69
|
|
|
70
70
|
[[package]]
|
|
71
71
|
name = "async-compression"
|
|
72
|
-
version = "0.4.
|
|
72
|
+
version = "0.4.49"
|
|
73
73
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
74
|
-
checksum = "
|
|
74
|
+
checksum = "a3789ca2cd1c4e8ce71fe9bd6312566014e20ff3016fc87bc71c59ff93b5fa61"
|
|
75
75
|
dependencies = [
|
|
76
76
|
"compression-codecs",
|
|
77
77
|
"compression-core",
|
|
@@ -387,9 +387,9 @@ dependencies = [
|
|
|
387
387
|
|
|
388
388
|
[[package]]
|
|
389
389
|
name = "cc"
|
|
390
|
-
version = "1.
|
|
390
|
+
version = "1.5.1"
|
|
391
391
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
392
|
-
checksum = "
|
|
392
|
+
checksum = "f360145194ee8e21db5ee7f3fcd4fe52210864c75c985dae33218202c8bbe040"
|
|
393
393
|
dependencies = [
|
|
394
394
|
"find-msvc-tools",
|
|
395
395
|
"shlex 2.0.1",
|
|
@@ -489,9 +489,9 @@ dependencies = [
|
|
|
489
489
|
|
|
490
490
|
[[package]]
|
|
491
491
|
name = "compression-codecs"
|
|
492
|
-
version = "0.4.
|
|
492
|
+
version = "0.4.44"
|
|
493
493
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
494
|
-
checksum = "
|
|
494
|
+
checksum = "5f018b36ac50598f7bfb0aa6094281e253e6b3cbc507a69652d2fb963a326d8d"
|
|
495
495
|
dependencies = [
|
|
496
496
|
"compression-core",
|
|
497
497
|
"flate2",
|
|
@@ -919,9 +919,9 @@ checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
|
|
|
919
919
|
|
|
920
920
|
[[package]]
|
|
921
921
|
name = "find-msvc-tools"
|
|
922
|
-
version = "0.1.
|
|
922
|
+
version = "0.1.14"
|
|
923
923
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
924
|
-
checksum = "
|
|
924
|
+
checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484"
|
|
925
925
|
|
|
926
926
|
[[package]]
|
|
927
927
|
name = "flate2"
|
|
@@ -1626,9 +1626,9 @@ dependencies = [
|
|
|
1626
1626
|
|
|
1627
1627
|
[[package]]
|
|
1628
1628
|
name = "js-sys"
|
|
1629
|
-
version = "0.3.
|
|
1629
|
+
version = "0.3.106"
|
|
1630
1630
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1631
|
-
checksum = "
|
|
1631
|
+
checksum = "7883d941dae510fb2d978fc3fe018c71c9e2892fd38854de3e8b92c2e5ad9cc5"
|
|
1632
1632
|
dependencies = [
|
|
1633
1633
|
"cfg-if",
|
|
1634
1634
|
"futures-util",
|
|
@@ -1697,9 +1697,9 @@ checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
|
|
|
1697
1697
|
|
|
1698
1698
|
[[package]]
|
|
1699
1699
|
name = "liter-llm"
|
|
1700
|
-
version = "2.1.
|
|
1700
|
+
version = "2.1.2"
|
|
1701
1701
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1702
|
-
checksum = "
|
|
1702
|
+
checksum = "195beed58c0db82dd1159f4f5a5ba80847f9be9dc1d583faf02f98ac67233aba"
|
|
1703
1703
|
dependencies = [
|
|
1704
1704
|
"ahash",
|
|
1705
1705
|
"arc-swap",
|
|
@@ -1742,7 +1742,7 @@ dependencies = [
|
|
|
1742
1742
|
|
|
1743
1743
|
[[package]]
|
|
1744
1744
|
name = "liter-llm-rb"
|
|
1745
|
-
version = "2.1.
|
|
1745
|
+
version = "2.1.2"
|
|
1746
1746
|
dependencies = [
|
|
1747
1747
|
"futures",
|
|
1748
1748
|
"liter-llm",
|
|
@@ -1786,9 +1786,9 @@ checksum = "fc04a4c58212d57930a24bf47d3fa87485264a3a054e9c10e042eb373573ad3c"
|
|
|
1786
1786
|
|
|
1787
1787
|
[[package]]
|
|
1788
1788
|
name = "magnus"
|
|
1789
|
-
version = "0.9.
|
|
1789
|
+
version = "0.9.1"
|
|
1790
1790
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1791
|
-
checksum = "
|
|
1791
|
+
checksum = "4c01bef153b8d0f086991f0e166474a1d57b738221f9a9c11405d498ac95a44d"
|
|
1792
1792
|
dependencies = [
|
|
1793
1793
|
"magnus-macros",
|
|
1794
1794
|
"rb-sys",
|
|
@@ -1798,9 +1798,9 @@ dependencies = [
|
|
|
1798
1798
|
|
|
1799
1799
|
[[package]]
|
|
1800
1800
|
name = "magnus-macros"
|
|
1801
|
-
version = "0.9.
|
|
1801
|
+
version = "0.9.1"
|
|
1802
1802
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1803
|
-
checksum = "
|
|
1803
|
+
checksum = "9dafde2eeb66f090e0f326112323eb8324b12cb32b5d1210e541d3df6b0ce77e"
|
|
1804
1804
|
dependencies = [
|
|
1805
1805
|
"proc-macro2",
|
|
1806
1806
|
"quote",
|
|
@@ -3082,9 +3082,9 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|
|
3082
3082
|
|
|
3083
3083
|
[[package]]
|
|
3084
3084
|
name = "smallvec"
|
|
3085
|
-
version = "1.16.
|
|
3085
|
+
version = "1.16.2"
|
|
3086
3086
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3087
|
-
checksum = "
|
|
3087
|
+
checksum = "f9395f0f0eee849a9b707b2f06bb92a6a422090e2123bb2ef8e87a0e61892a8e"
|
|
3088
3088
|
|
|
3089
3089
|
[[package]]
|
|
3090
3090
|
name = "socket2"
|
|
@@ -3356,9 +3356,9 @@ dependencies = [
|
|
|
3356
3356
|
|
|
3357
3357
|
[[package]]
|
|
3358
3358
|
name = "tokio-rustls"
|
|
3359
|
-
version = "0.26.
|
|
3359
|
+
version = "0.26.6"
|
|
3360
3360
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3361
|
-
checksum = "
|
|
3361
|
+
checksum = "c9cc2678c2cdd569ef8215e2afd7954ada2ae20b4fdd2c5fe6139a3b02d105db"
|
|
3362
3362
|
dependencies = [
|
|
3363
3363
|
"rustls",
|
|
3364
3364
|
"tokio",
|
|
@@ -3750,9 +3750,9 @@ dependencies = [
|
|
|
3750
3750
|
|
|
3751
3751
|
[[package]]
|
|
3752
3752
|
name = "wasm-bindgen"
|
|
3753
|
-
version = "0.2.
|
|
3753
|
+
version = "0.2.129"
|
|
3754
3754
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3755
|
-
checksum = "
|
|
3755
|
+
checksum = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409"
|
|
3756
3756
|
dependencies = [
|
|
3757
3757
|
"cfg-if",
|
|
3758
3758
|
"once_cell",
|
|
@@ -3764,19 +3764,20 @@ dependencies = [
|
|
|
3764
3764
|
|
|
3765
3765
|
[[package]]
|
|
3766
3766
|
name = "wasm-bindgen-futures"
|
|
3767
|
-
version = "0.4.
|
|
3767
|
+
version = "0.4.79"
|
|
3768
3768
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3769
|
-
checksum = "
|
|
3769
|
+
checksum = "3cbab34de2d982e9b48e18d216d04c4a6f641066ff19ffb699980f591ee3610e"
|
|
3770
3770
|
dependencies = [
|
|
3771
3771
|
"js-sys",
|
|
3772
|
+
"tokio",
|
|
3772
3773
|
"wasm-bindgen",
|
|
3773
3774
|
]
|
|
3774
3775
|
|
|
3775
3776
|
[[package]]
|
|
3776
3777
|
name = "wasm-bindgen-macro"
|
|
3777
|
-
version = "0.2.
|
|
3778
|
+
version = "0.2.129"
|
|
3778
3779
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3779
|
-
checksum = "
|
|
3780
|
+
checksum = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535"
|
|
3780
3781
|
dependencies = [
|
|
3781
3782
|
"quote",
|
|
3782
3783
|
"wasm-bindgen-macro-support",
|
|
@@ -3784,9 +3785,9 @@ dependencies = [
|
|
|
3784
3785
|
|
|
3785
3786
|
[[package]]
|
|
3786
3787
|
name = "wasm-bindgen-macro-support"
|
|
3787
|
-
version = "0.2.
|
|
3788
|
+
version = "0.2.129"
|
|
3788
3789
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3789
|
-
checksum = "
|
|
3790
|
+
checksum = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7"
|
|
3790
3791
|
dependencies = [
|
|
3791
3792
|
"bumpalo",
|
|
3792
3793
|
"proc-macro2",
|
|
@@ -3797,9 +3798,9 @@ dependencies = [
|
|
|
3797
3798
|
|
|
3798
3799
|
[[package]]
|
|
3799
3800
|
name = "wasm-bindgen-shared"
|
|
3800
|
-
version = "0.2.
|
|
3801
|
+
version = "0.2.129"
|
|
3801
3802
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3802
|
-
checksum = "
|
|
3803
|
+
checksum = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6"
|
|
3803
3804
|
dependencies = [
|
|
3804
3805
|
"unicode-ident",
|
|
3805
3806
|
]
|
|
@@ -3819,9 +3820,9 @@ dependencies = [
|
|
|
3819
3820
|
|
|
3820
3821
|
[[package]]
|
|
3821
3822
|
name = "web-sys"
|
|
3822
|
-
version = "0.3.
|
|
3823
|
+
version = "0.3.106"
|
|
3823
3824
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3824
|
-
checksum = "
|
|
3825
|
+
checksum = "88261b9deccee56594c11a3460c462c41f58d148598fe70ad77070126a68aba4"
|
|
3825
3826
|
dependencies = [
|
|
3826
3827
|
"js-sys",
|
|
3827
3828
|
"wasm-bindgen",
|
|
@@ -4181,18 +4182,18 @@ dependencies = [
|
|
|
4181
4182
|
|
|
4182
4183
|
[[package]]
|
|
4183
4184
|
name = "zerocopy"
|
|
4184
|
-
version = "0.8.
|
|
4185
|
+
version = "0.8.59"
|
|
4185
4186
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4186
|
-
checksum = "
|
|
4187
|
+
checksum = "6df92bf3d9227be3d53173901ddbffac2babc27ae50f397776ffd6dc33f800cb"
|
|
4187
4188
|
dependencies = [
|
|
4188
4189
|
"zerocopy-derive",
|
|
4189
4190
|
]
|
|
4190
4191
|
|
|
4191
4192
|
[[package]]
|
|
4192
4193
|
name = "zerocopy-derive"
|
|
4193
|
-
version = "0.8.
|
|
4194
|
+
version = "0.8.59"
|
|
4194
4195
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4195
|
-
checksum = "
|
|
4196
|
+
checksum = "ac4f328cf2f05d084e496c3e9c3f33ed0a183656a16e1fcec4d464d8373aec82"
|
|
4196
4197
|
dependencies = [
|
|
4197
4198
|
"proc-macro2",
|
|
4198
4199
|
"quote",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:38b83c8e4282935c69a322684e3def267a864dc82d26fc8322f6f8ed27b65e4e
|
|
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 = "2.1.
|
|
8
|
+
version = "2.1.2"
|
|
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 = "2.1.
|
|
34
|
+
liter-llm = { version = "2.1.2", features = ["native-http", "full"] }
|
|
35
35
|
magnus = "0.9"
|
|
36
36
|
rb-sys = ">=0.9.130, <0.10"
|
|
37
37
|
serde = { version = "1", features = ["derive"] }
|
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:3d67a161923134ed4b5f9771327dbb7dcd88240d3e2dd0bf458a0ea4302cfb6b
|
|
3
3
|
// Re-generate with: alef generate
|
|
4
4
|
#![allow(dead_code, unused_imports, unused_variables)]
|
|
5
5
|
#![allow(
|
|
@@ -1444,7 +1444,7 @@ unsafe impl TryConvertOwned for CatalogRefreshConfig {}
|
|
|
1444
1444
|
|
|
1445
1445
|
impl Default for CatalogRefreshConfig {
|
|
1446
1446
|
fn default() -> Self {
|
|
1447
|
-
liter_llm::
|
|
1447
|
+
liter_llm::CatalogRefreshConfig::default().into()
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
1450
|
|
|
@@ -13550,7 +13550,38 @@ pub enum ToolChoice {
|
|
|
13550
13550
|
|
|
13551
13551
|
impl magnus::TryConvert for ToolChoice {
|
|
13552
13552
|
fn try_convert(val: magnus::Value) -> Result<Self, magnus::Error> {
|
|
13553
|
-
|
|
13553
|
+
// The native class is the only unambiguous input for a discriminator-free enum, but it is
|
|
13554
|
+
// not the only legitimate one: serde's own Deserialize accepts every variant's wire form,
|
|
13555
|
+
// so a caller holding a decoded String or Hash must keep working. Take the wrapped instance
|
|
13556
|
+
// when there is one, otherwise fall through to the serde reader below.
|
|
13557
|
+
if let Ok(wrapped) = <&Self as magnus::TryConvert>::try_convert(val) {
|
|
13558
|
+
return Ok(wrapped.clone());
|
|
13559
|
+
} // For data enums with fields (e.g., PageAction), try to deserialize from JSON first.
|
|
13560
|
+
// For unit enums or when passed as a string, fall back to string-based conversion.
|
|
13561
|
+
let json_str: String = if let Ok(s) = <String as magnus::TryConvert>::try_convert(val) {
|
|
13562
|
+
s
|
|
13563
|
+
} else {
|
|
13564
|
+
val.funcall::<_, _, String>("to_json", ()).map_err(|e| {
|
|
13565
|
+
magnus::Error::new(
|
|
13566
|
+
unsafe { Ruby::get_unchecked() }.exception_type_error(),
|
|
13567
|
+
format!("no implicit conversion into ToolChoice: {}", e),
|
|
13568
|
+
)
|
|
13569
|
+
})?
|
|
13570
|
+
};
|
|
13571
|
+
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
13572
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
13573
|
+
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
13574
|
+
// If both fail, try as Custom variant (for untagged enum support)
|
|
13575
|
+
serde_json::from_str(&json_str)
|
|
13576
|
+
.or_else(|_| serde_json::from_str(&format!("\"{json_str}\"")))
|
|
13577
|
+
.or_else(|_| {
|
|
13578
|
+
// Try as a JSON string for Custom variant (untagged enums accept any remaining value)
|
|
13579
|
+
match serde_json::to_value(&json_str) {
|
|
13580
|
+
Ok(val) => serde_json::from_value(val),
|
|
13581
|
+
Err(e) => Err(e),
|
|
13582
|
+
}
|
|
13583
|
+
})
|
|
13584
|
+
.map_err(|e| magnus::Error::new(unsafe { Ruby::get_unchecked() }.exception_type_error(), e.to_string()))
|
|
13554
13585
|
}
|
|
13555
13586
|
}
|
|
13556
13587
|
|
|
@@ -13757,7 +13788,7 @@ fn clear() -> () {
|
|
|
13757
13788
|
}
|
|
13758
13789
|
|
|
13759
13790
|
fn clear_catalog_overlay() -> () {
|
|
13760
|
-
liter_llm::
|
|
13791
|
+
liter_llm::clear_catalog_overlay()
|
|
13761
13792
|
}
|
|
13762
13793
|
|
|
13763
13794
|
fn completion_cost(model: String, prompt_tokens: u64, completion_tokens: u64) -> Option<f64> {
|
|
@@ -13906,7 +13937,7 @@ fn ensure_crypto_provider() -> () {
|
|
|
13906
13937
|
}
|
|
13907
13938
|
|
|
13908
13939
|
fn install_catalog_overlay_from_str(catalog_json: String) -> Result<(), Error> {
|
|
13909
|
-
let result = liter_llm::
|
|
13940
|
+
let result = liter_llm::install_catalog_overlay_from_str(&catalog_json).map_err(|e| {
|
|
13910
13941
|
magnus::Error::new(
|
|
13911
13942
|
unsafe { Ruby::get_unchecked() }.exception_runtime_error(),
|
|
13912
13943
|
e.to_string(),
|
|
@@ -13945,7 +13976,7 @@ fn refresh_catalog(args: &[magnus::Value]) -> Result<RefreshOutcome, Error> {
|
|
|
13945
13976
|
.enable_all()
|
|
13946
13977
|
.build()
|
|
13947
13978
|
.map_err(|e| e.to_string())?;
|
|
13948
|
-
rt.block_on(async { liter_llm::
|
|
13979
|
+
rt.block_on(async { liter_llm::refresh_catalog(&config_core).await })
|
|
13949
13980
|
.map_err(|e| e.to_string())
|
|
13950
13981
|
});
|
|
13951
13982
|
let result = async_result
|
|
@@ -13974,7 +14005,7 @@ fn refresh_catalog_async(args: &[magnus::Value]) -> Result<RefreshOutcome, Error
|
|
|
13974
14005
|
.enable_all()
|
|
13975
14006
|
.build()
|
|
13976
14007
|
.map_err(|e| e.to_string())?;
|
|
13977
|
-
rt.block_on(async { liter_llm::
|
|
14008
|
+
rt.block_on(async { liter_llm::refresh_catalog(&config_core).await })
|
|
13978
14009
|
.map_err(|e| e.to_string())
|
|
13979
14010
|
});
|
|
13980
14011
|
let result = async_result
|
|
@@ -14278,7 +14309,7 @@ impl From<liter_llm::CacheConfig> for CacheConfig {
|
|
|
14278
14309
|
}
|
|
14279
14310
|
|
|
14280
14311
|
#[allow(clippy::needless_update)]
|
|
14281
|
-
impl From<CatalogRefreshConfig> for liter_llm::
|
|
14312
|
+
impl From<CatalogRefreshConfig> for liter_llm::CatalogRefreshConfig {
|
|
14282
14313
|
fn from(val: CatalogRefreshConfig) -> Self {
|
|
14283
14314
|
Self {
|
|
14284
14315
|
enabled: val.enabled,
|
|
@@ -14291,8 +14322,8 @@ impl From<CatalogRefreshConfig> for liter_llm::cost::refresh::CatalogRefreshConf
|
|
|
14291
14322
|
}
|
|
14292
14323
|
|
|
14293
14324
|
#[allow(clippy::redundant_closure)]
|
|
14294
|
-
impl From<liter_llm::
|
|
14295
|
-
fn from(val: liter_llm::
|
|
14325
|
+
impl From<liter_llm::CatalogRefreshConfig> for CatalogRefreshConfig {
|
|
14326
|
+
fn from(val: liter_llm::CatalogRefreshConfig) -> Self {
|
|
14296
14327
|
Self {
|
|
14297
14328
|
enabled: val.enabled,
|
|
14298
14329
|
source_url: val.source_url.to_string(),
|
|
@@ -16827,7 +16858,7 @@ impl From<liter_llm::types::ReasoningEffort> for ReasoningEffort {
|
|
|
16827
16858
|
}
|
|
16828
16859
|
}
|
|
16829
16860
|
|
|
16830
|
-
impl From<RefreshOutcome> for liter_llm::
|
|
16861
|
+
impl From<RefreshOutcome> for liter_llm::RefreshOutcome {
|
|
16831
16862
|
fn from(val: RefreshOutcome) -> Self {
|
|
16832
16863
|
match val {
|
|
16833
16864
|
RefreshOutcome::Disabled => Self::Disabled,
|
|
@@ -16837,12 +16868,12 @@ impl From<RefreshOutcome> for liter_llm::cost::refresh::RefreshOutcome {
|
|
|
16837
16868
|
}
|
|
16838
16869
|
}
|
|
16839
16870
|
|
|
16840
|
-
impl From<liter_llm::
|
|
16841
|
-
fn from(val: liter_llm::
|
|
16871
|
+
impl From<liter_llm::RefreshOutcome> for RefreshOutcome {
|
|
16872
|
+
fn from(val: liter_llm::RefreshOutcome) -> Self {
|
|
16842
16873
|
match val {
|
|
16843
|
-
liter_llm::
|
|
16844
|
-
liter_llm::
|
|
16845
|
-
liter_llm::
|
|
16874
|
+
liter_llm::RefreshOutcome::Disabled => Self::Disabled,
|
|
16875
|
+
liter_llm::RefreshOutcome::FromCache => Self::FromCache,
|
|
16876
|
+
liter_llm::RefreshOutcome::Fetched => Self::Fetched,
|
|
16846
16877
|
}
|
|
16847
16878
|
}
|
|
16848
16879
|
}
|
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:835c72f66a33857e5cde5ce9bf834c4e062a440d6f44fbef5ea1e6ce8572a293
|
|
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 = "2.1.
|
|
9
|
+
VERSION = "2.1.2"
|
|
10
10
|
end
|
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: 2.1.
|
|
4
|
+
version: 2.1.2
|
|
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-09-
|
|
11
|
+
date: 2026-09-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rb_sys
|