liter_llm 1.8.1 → 1.8.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 +3 -3
- data/ext/liter_llm_rb/native/Cargo.toml +2 -2
- data/ext/liter_llm_rb/src/lib.rs +19 -1
- 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 +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e09e1fd6f70b0036d15971bb0c0bc6ae038b982ef874ec3b63a716549335759f
|
|
4
|
+
data.tar.gz: 1c156a0098190f9205ec00a6cf96b68971bdfb7591e89418d60cf63412799260
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 132f7839e58c964e05f2e7f7051739c4650ce7237682b95e2f4cd5f2490cd00314953f22edd29f9a4804d08e980f3e477f90f430e98ffe010f90acc3243dba26
|
|
7
|
+
data.tar.gz: c18d7a650d7f11c3057e11af1ed8b2947e434e01ba92449c5e122c6d227bc1cfcd6d847417596fe794879c9d5c5ebae6a3feea46044e48a46b5988fb628b5ab4
|
|
@@ -1875,9 +1875,9 @@ checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
|
|
|
1875
1875
|
|
|
1876
1876
|
[[package]]
|
|
1877
1877
|
name = "liter-llm"
|
|
1878
|
-
version = "1.8.
|
|
1878
|
+
version = "1.8.2"
|
|
1879
1879
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1880
|
-
checksum = "
|
|
1880
|
+
checksum = "e74dc1be999733d39ca7391fc8f24dbf7c76af7f8e31d2eaa38e95c0434a9934"
|
|
1881
1881
|
dependencies = [
|
|
1882
1882
|
"ahash 0.8.12",
|
|
1883
1883
|
"async-trait",
|
|
@@ -1917,7 +1917,7 @@ dependencies = [
|
|
|
1917
1917
|
|
|
1918
1918
|
[[package]]
|
|
1919
1919
|
name = "liter-llm-rb"
|
|
1920
|
-
version = "1.8.
|
|
1920
|
+
version = "1.8.2"
|
|
1921
1921
|
dependencies = [
|
|
1922
1922
|
"futures",
|
|
1923
1923
|
"liter-llm",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "liter-llm-rb"
|
|
3
|
-
version = "1.8.
|
|
3
|
+
version = "1.8.2"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
license = "MIT"
|
|
6
6
|
description = "Universal LLM API client with Rust-powered polyglot bindings."
|
|
@@ -24,7 +24,7 @@ wasm-http = ["liter-llm/wasm-http"]
|
|
|
24
24
|
|
|
25
25
|
[dependencies]
|
|
26
26
|
futures = "0.3"
|
|
27
|
-
liter-llm = { version = "1.8.
|
|
27
|
+
liter-llm = { version = "1.8.2", features = ["native-http", "full"] }
|
|
28
28
|
magnus = "0.8"
|
|
29
29
|
rb-sys = ">=0.9, <0.9.128"
|
|
30
30
|
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:b159ec7bf40f2249b9f5696d5819688bca2310a2b26cc9acae8194e6255f8b03
|
|
3
3
|
// Re-generate with: alef generate
|
|
4
4
|
#![allow(dead_code, unused_imports, unused_variables)]
|
|
5
5
|
#![allow(
|
|
@@ -7630,9 +7630,11 @@ impl magnus::TryConvert for Message {
|
|
|
7630
7630
|
})?
|
|
7631
7631
|
};
|
|
7632
7632
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
7633
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
7633
7634
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
7634
7635
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
7635
7636
|
serde_json::from_str(&json_str)
|
|
7637
|
+
.or_else(|_| serde_json::from_value(serde_json::json!({ "role": json_str })))
|
|
7636
7638
|
.or_else(|_| serde_json::from_str(&format!("\"{json_str}\"")))
|
|
7637
7639
|
.or_else(|_| {
|
|
7638
7640
|
// Try as a JSON string for Custom variant (untagged enums accept any remaining value)
|
|
@@ -7723,6 +7725,7 @@ impl magnus::TryConvert for UserContent {
|
|
|
7723
7725
|
})?
|
|
7724
7726
|
};
|
|
7725
7727
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
7728
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
7726
7729
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
7727
7730
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
7728
7731
|
serde_json::from_str(&json_str)
|
|
@@ -7786,9 +7789,11 @@ impl magnus::TryConvert for ContentPart {
|
|
|
7786
7789
|
})?
|
|
7787
7790
|
};
|
|
7788
7791
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
7792
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
7789
7793
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
7790
7794
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
7791
7795
|
serde_json::from_str(&json_str)
|
|
7796
|
+
.or_else(|_| serde_json::from_value(serde_json::json!({ "type": json_str })))
|
|
7792
7797
|
.or_else(|_| serde_json::from_str(&format!("\"{json_str}\"")))
|
|
7793
7798
|
.or_else(|_| {
|
|
7794
7799
|
// Try as a JSON string for Custom variant (untagged enums accept any remaining value)
|
|
@@ -7887,6 +7892,7 @@ impl magnus::TryConvert for AssistantContent {
|
|
|
7887
7892
|
})?
|
|
7888
7893
|
};
|
|
7889
7894
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
7895
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
7890
7896
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
7891
7897
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
7892
7898
|
serde_json::from_str(&json_str)
|
|
@@ -7947,9 +7953,11 @@ impl magnus::TryConvert for AssistantPart {
|
|
|
7947
7953
|
})?
|
|
7948
7954
|
};
|
|
7949
7955
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
7956
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
7950
7957
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
7951
7958
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
7952
7959
|
serde_json::from_str(&json_str)
|
|
7960
|
+
.or_else(|_| serde_json::from_value(serde_json::json!({ "type": json_str })))
|
|
7953
7961
|
.or_else(|_| serde_json::from_str(&format!("\"{json_str}\"")))
|
|
7954
7962
|
.or_else(|_| {
|
|
7955
7963
|
// Try as a JSON string for Custom variant (untagged enums accept any remaining value)
|
|
@@ -8042,6 +8050,7 @@ impl magnus::TryConvert for ToolChoice {
|
|
|
8042
8050
|
})?
|
|
8043
8051
|
};
|
|
8044
8052
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
8053
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
8045
8054
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
8046
8055
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
8047
8056
|
serde_json::from_str(&json_str)
|
|
@@ -8146,9 +8155,11 @@ impl magnus::TryConvert for ResponseFormat {
|
|
|
8146
8155
|
})?
|
|
8147
8156
|
};
|
|
8148
8157
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
8158
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
8149
8159
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
8150
8160
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
8151
8161
|
serde_json::from_str(&json_str)
|
|
8162
|
+
.or_else(|_| serde_json::from_value(serde_json::json!({ "type": json_str })))
|
|
8152
8163
|
.or_else(|_| serde_json::from_str(&format!("\"{json_str}\"")))
|
|
8153
8164
|
.or_else(|_| {
|
|
8154
8165
|
// Try as a JSON string for Custom variant (untagged enums accept any remaining value)
|
|
@@ -8202,6 +8213,7 @@ impl magnus::TryConvert for StopSequence {
|
|
|
8202
8213
|
})?
|
|
8203
8214
|
};
|
|
8204
8215
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
8216
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
8205
8217
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
8206
8218
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
8207
8219
|
serde_json::from_str(&json_str)
|
|
@@ -8444,6 +8456,7 @@ impl magnus::TryConvert for EmbeddingInput {
|
|
|
8444
8456
|
})?
|
|
8445
8457
|
};
|
|
8446
8458
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
8459
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
8447
8460
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
8448
8461
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
8449
8462
|
serde_json::from_str(&json_str)
|
|
@@ -8499,6 +8512,7 @@ impl magnus::TryConvert for ModerationInput {
|
|
|
8499
8512
|
})?
|
|
8500
8513
|
};
|
|
8501
8514
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
8515
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
8502
8516
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
8503
8517
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
8504
8518
|
serde_json::from_str(&json_str)
|
|
@@ -8554,6 +8568,7 @@ impl magnus::TryConvert for RerankDocument {
|
|
|
8554
8568
|
})?
|
|
8555
8569
|
};
|
|
8556
8570
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
8571
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
8557
8572
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
8558
8573
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
8559
8574
|
serde_json::from_str(&json_str)
|
|
@@ -8613,9 +8628,11 @@ impl magnus::TryConvert for OcrDocument {
|
|
|
8613
8628
|
})?
|
|
8614
8629
|
};
|
|
8615
8630
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
8631
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
8616
8632
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
8617
8633
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
8618
8634
|
serde_json::from_str(&json_str)
|
|
8635
|
+
.or_else(|_| serde_json::from_value(serde_json::json!({ "type": json_str })))
|
|
8619
8636
|
.or_else(|_| serde_json::from_str(&format!("\"{json_str}\"")))
|
|
8620
8637
|
.or_else(|_| {
|
|
8621
8638
|
// Try as a JSON string for Custom variant (untagged enums accept any remaining value)
|
|
@@ -8777,6 +8794,7 @@ impl magnus::TryConvert for AuthHeaderFormat {
|
|
|
8777
8794
|
})?
|
|
8778
8795
|
};
|
|
8779
8796
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
8797
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
8780
8798
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
8781
8799
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
8782
8800
|
serde_json::from_str(&json_str)
|
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:b159ec7bf40f2249b9f5696d5819688bca2310a2b26cc9acae8194e6255f8b03
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
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:b159ec7bf40f2249b9f5696d5819688bca2310a2b26cc9acae8194e6255f8b03
|
|
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.8.
|
|
9
|
+
VERSION = "1.8.2"
|
|
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:b159ec7bf40f2249b9f5696d5819688bca2310a2b26cc9acae8194e6255f8b03
|
|
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:
|
|
2
|
+
# alef:hash:b159ec7bf40f2249b9f5696d5819688bca2310a2b26cc9acae8194e6255f8b03
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
|