liter_llm 1.12.2 → 1.14.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96ad339f5ab0398153bcd8aa40ddd67860b07994deaacbd35aeb55f4889902c6
4
- data.tar.gz: dd9dc95cb8dacd6137b76e5f8ce6f3e820fcac7cd6a9c38945c3a8975fa169c8
3
+ metadata.gz: e6975f782d7147e4f12c09c3e6e410ed96fb29410b31869c817f8f02b6d4cdc3
4
+ data.tar.gz: bb00fb9c67c9717955d903739dc56c038610e1f37dcc568434e814b1bad37c05
5
5
  SHA512:
6
- metadata.gz: 04dfcdc9e0ea8253195654c8d4c8b1a966ccad2dd5973ea512558f6c8f4c32cb4ba0df490111aabeb712a39829a3cf966705fc9fe9dc5e30d19f6b123a59d377
7
- data.tar.gz: 45003739a9cea5bae8b00787a8e754ee71a4b20e10b1b5dc050abd98fc626363463b906166235fad09b4be128736a8ccfe41e9c166dd30665375ce1cc370ffb5
6
+ metadata.gz: 6b883d13f27f10aa553dd44593bc0a7526b8823b8e8d122b42a8f3dd9a971e8da758713fbd6a6fe17dac0051dbf05e5164cb17b701c9fadafab5f6dd471e6229
7
+ data.tar.gz: 32dcc6488227d485923f4ebfa7381176f770323d20d5b829c032c3ceab2237711e4a0a51cd4caab2cad0bda1b1a00d7ec6f6e26937588b39d28d8238c2ff2c5d
@@ -80,9 +80,9 @@ checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"
80
80
 
81
81
  [[package]]
82
82
  name = "async-compression"
83
- version = "0.4.42"
83
+ version = "0.4.43"
84
84
  source = "registry+https://github.com/rust-lang/crates.io-index"
85
- checksum = "e79b3f8a79cccc2898f31920fc69f304859b3bd567490f75ebf51ae1c792a9ac"
85
+ checksum = "3976abdc8fe7d1133d43d304afd42abdf5bc3e1319d263d223bde07b5efc4be8"
86
86
  dependencies = [
87
87
  "compression-codecs",
88
88
  "compression-core",
@@ -486,9 +486,9 @@ dependencies = [
486
486
 
487
487
  [[package]]
488
488
  name = "clang-sys"
489
- version = "1.8.1"
489
+ version = "1.9.1"
490
490
  source = "registry+https://github.com/rust-lang/crates.io-index"
491
- checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
491
+ checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
492
492
  dependencies = [
493
493
  "glob",
494
494
  "libc",
@@ -1578,9 +1578,9 @@ dependencies = [
1578
1578
 
1579
1579
  [[package]]
1580
1580
  name = "ipnet"
1581
- version = "2.12.0"
1581
+ version = "2.12.1"
1582
1582
  source = "registry+https://github.com/rust-lang/crates.io-index"
1583
- checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2"
1583
+ checksum = "6a756c3fac73139e83f14c2d742155dd2b78d3ee56597b419a0579b7bdd6dd78"
1584
1584
 
1585
1585
  [[package]]
1586
1586
  name = "itertools"
@@ -1783,9 +1783,9 @@ checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
1783
1783
 
1784
1784
  [[package]]
1785
1785
  name = "liter-llm"
1786
- version = "1.12.2"
1786
+ version = "1.14.0"
1787
1787
  source = "registry+https://github.com/rust-lang/crates.io-index"
1788
- checksum = "667b590da9a5eead868e89f3f61817ae60038745833e7b6ef5b318f5e43501f9"
1788
+ checksum = "afe9e76497b91e6d0f22876f9c909961de89a548e472fb834a6d623906146ccb"
1789
1789
  dependencies = [
1790
1790
  "ahash 0.8.12",
1791
1791
  "arc-swap",
@@ -1826,7 +1826,7 @@ dependencies = [
1826
1826
 
1827
1827
  [[package]]
1828
1828
  name = "liter-llm-rb"
1829
- version = "1.12.2"
1829
+ version = "1.14.0"
1830
1830
  dependencies = [
1831
1831
  "futures",
1832
1832
  "liter-llm",
@@ -1854,19 +1854,19 @@ checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
1854
1854
 
1855
1855
  [[package]]
1856
1856
  name = "macro_rules_attribute"
1857
- version = "0.2.2"
1857
+ version = "0.2.3"
1858
1858
  source = "registry+https://github.com/rust-lang/crates.io-index"
1859
- checksum = "65049d7923698040cd0b1ddcced9b0eb14dd22c5f86ae59c3740eab64a676520"
1859
+ checksum = "b3ae8f6d608c795738406608304d30a2dfbdc8e58e44f7ba43236da5208ded3c"
1860
1860
  dependencies = [
1861
1861
  "macro_rules_attribute-proc_macro",
1862
- "paste",
1862
+ "pastey",
1863
1863
  ]
1864
1864
 
1865
1865
  [[package]]
1866
1866
  name = "macro_rules_attribute-proc_macro"
1867
- version = "0.2.2"
1867
+ version = "0.2.3"
1868
1868
  source = "registry+https://github.com/rust-lang/crates.io-index"
1869
- checksum = "670fdfda89751bc4a84ac13eaa63e205cf0fd22b4c9a5fbfa085b63c1f1d3a30"
1869
+ checksum = "fc04a4c58212d57930a24bf47d3fa87485264a3a054e9c10e042eb373573ad3c"
1870
1870
 
1871
1871
  [[package]]
1872
1872
  name = "magnus"
@@ -2256,6 +2256,12 @@ version = "1.0.15"
2256
2256
  source = "registry+https://github.com/rust-lang/crates.io-index"
2257
2257
  checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
2258
2258
 
2259
+ [[package]]
2260
+ name = "pastey"
2261
+ version = "0.2.3"
2262
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2263
+ checksum = "2ee67f1008b1ba2321834326597b8e186293b049a023cdef258527550b9935b4"
2264
+
2259
2265
  [[package]]
2260
2266
  name = "pem"
2261
2267
  version = "3.0.6"
@@ -3361,9 +3367,9 @@ dependencies = [
3361
3367
 
3362
3368
  [[package]]
3363
3369
  name = "time"
3364
- version = "0.3.54"
3370
+ version = "0.3.55"
3365
3371
  source = "registry+https://github.com/rust-lang/crates.io-index"
3366
- checksum = "3e1d5e639ff6bab73cb6885cc7e7b1de96c3f32c68ec55f3952614bec1092244"
3372
+ checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134"
3367
3373
  dependencies = [
3368
3374
  "deranged",
3369
3375
  "num-conv",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "liter-llm-rb"
3
- version = "1.12.2"
3
+ version = "1.14.0"
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.12.2", features = ["native-http", "full"] }
27
+ liter-llm = { version = "1.14.0", 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"] }
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by alef. DO NOT EDIT.
2
- // alef:hash:7bacb53ba62128cddbad2af9594a8f7a0d67daee3cb1a21a2569382109274fca
2
+ // alef:hash:a1989c3dfb77377970d88272370ba76653a7c87963705fabadca288653ab7055
3
3
  // Re-generate with: alef generate
4
4
  #![allow(dead_code, unused_imports, unused_variables)]
5
5
  #![allow(
@@ -5918,6 +5918,7 @@ pub struct CreateResponseRequest {
5918
5918
  temperature: Option<f64>,
5919
5919
  max_output_tokens: Option<u64>,
5920
5920
  metadata: Option<String>,
5921
+ stream: Option<bool>,
5921
5922
  }
5922
5923
 
5923
5924
  unsafe impl IntoValueFromNative for CreateResponseRequest {}
@@ -5984,6 +5985,9 @@ impl CreateResponseRequest {
5984
5985
  metadata: kwargs
5985
5986
  .get(ruby.to_symbol("metadata"))
5986
5987
  .and_then(|v| String::try_convert(v).ok()),
5988
+ stream: kwargs
5989
+ .get(ruby.to_symbol("stream"))
5990
+ .and_then(|v| bool::try_convert(v).ok()),
5987
5991
  })
5988
5992
  }
5989
5993
 
@@ -6014,6 +6018,10 @@ impl CreateResponseRequest {
6014
6018
  fn metadata(&self) -> Option<String> {
6015
6019
  self.metadata.clone()
6016
6020
  }
6021
+
6022
+ fn stream(&self) -> Option<bool> {
6023
+ self.stream
6024
+ }
6017
6025
  }
6018
6026
 
6019
6027
  #[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
@@ -8787,6 +8795,8 @@ pub enum ReasoningEffort {
8787
8795
  Low,
8788
8796
  Medium,
8789
8797
  High,
8798
+ Minimal,
8799
+ Max,
8790
8800
  }
8791
8801
 
8792
8802
  impl Default for ReasoningEffort {
@@ -8801,6 +8811,8 @@ impl magnus::IntoValue for ReasoningEffort {
8801
8811
  ReasoningEffort::Low => "low",
8802
8812
  ReasoningEffort::Medium => "medium",
8803
8813
  ReasoningEffort::High => "high",
8814
+ ReasoningEffort::Minimal => "minimal",
8815
+ ReasoningEffort::Max => "max",
8804
8816
  };
8805
8817
  handle.to_symbol(sym).into_value_with(handle)
8806
8818
  }
@@ -8815,6 +8827,8 @@ impl magnus::TryConvert for ReasoningEffort {
8815
8827
  "low" | "Low" => Ok(ReasoningEffort::Low),
8816
8828
  "medium" | "Medium" => Ok(ReasoningEffort::Medium),
8817
8829
  "high" | "High" => Ok(ReasoningEffort::High),
8830
+ "minimal" | "Minimal" => Ok(ReasoningEffort::Minimal),
8831
+ "max" | "Max" => Ok(ReasoningEffort::Max),
8818
8832
  other => Err(magnus::Error::new(
8819
8833
  unsafe { Ruby::get_unchecked() }.exception_arg_error(),
8820
8834
  format!("invalid ReasoningEffort value: {other}"),
@@ -11518,6 +11532,7 @@ impl From<CreateResponseRequest> for liter_llm::types::CreateResponseRequest {
11518
11532
  temperature: val.temperature,
11519
11533
  max_output_tokens: val.max_output_tokens,
11520
11534
  metadata: val.metadata.as_ref().and_then(|s| serde_json::from_str(s).ok()),
11535
+ stream: val.stream,
11521
11536
  ..Default::default()
11522
11537
  }
11523
11538
  }
@@ -11534,6 +11549,7 @@ impl From<liter_llm::types::CreateResponseRequest> for CreateResponseRequest {
11534
11549
  temperature: val.temperature,
11535
11550
  max_output_tokens: val.max_output_tokens,
11536
11551
  metadata: val.metadata.as_ref().map(ToString::to_string),
11552
+ stream: val.stream,
11537
11553
  }
11538
11554
  }
11539
11555
  }
@@ -12267,6 +12283,8 @@ impl From<ReasoningEffort> for liter_llm::types::ReasoningEffort {
12267
12283
  ReasoningEffort::Low => Self::Low,
12268
12284
  ReasoningEffort::Medium => Self::Medium,
12269
12285
  ReasoningEffort::High => Self::High,
12286
+ ReasoningEffort::Minimal => Self::Minimal,
12287
+ ReasoningEffort::Max => Self::Max,
12270
12288
  }
12271
12289
  }
12272
12290
  }
@@ -12277,6 +12295,8 @@ impl From<liter_llm::types::ReasoningEffort> for ReasoningEffort {
12277
12295
  liter_llm::types::ReasoningEffort::Low => Self::Low,
12278
12296
  liter_llm::types::ReasoningEffort::Medium => Self::Medium,
12279
12297
  liter_llm::types::ReasoningEffort::High => Self::High,
12298
+ liter_llm::types::ReasoningEffort::Minimal => Self::Minimal,
12299
+ liter_llm::types::ReasoningEffort::Max => Self::Max,
12280
12300
  }
12281
12301
  }
12282
12302
  }
@@ -13583,6 +13603,8 @@ fn ruby_init(ruby: &Ruby) -> Result<(), Error> {
13583
13603
 
13584
13604
  class.define_method("metadata", method!(CreateResponseRequest::metadata, 0))?;
13585
13605
 
13606
+ class.define_method("stream", method!(CreateResponseRequest::stream, 0))?;
13607
+
13586
13608
  let class = module.define_class("ResponseTool", ruby.class_object())?;
13587
13609
 
13588
13610
  class.define_singleton_method("new", function!(ResponseTool::new, -1))?;
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:7bacb53ba62128cddbad2af9594a8f7a0d67daee3cb1a21a2569382109274fca
2
+ # alef:hash:a1989c3dfb77377970d88272370ba76653a7c87963705fabadca288653ab7055
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:7bacb53ba62128cddbad2af9594a8f7a0d67daee3cb1a21a2569382109274fca
2
+ # alef:hash:a1989c3dfb77377970d88272370ba76653a7c87963705fabadca288653ab7055
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.12.2"
9
+ VERSION = "1.14.0"
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:7bacb53ba62128cddbad2af9594a8f7a0d67daee3cb1a21a2569382109274fca
2
+ # alef:hash:a1989c3dfb77377970d88272370ba76653a7c87963705fabadca288653ab7055
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
  # frozen_string_literal: true
@@ -17,11 +17,5 @@ module LiterLlm
17
17
  # Re-export all types and functions from native extension
18
18
  end
19
19
 
20
- # Bring top-level LiterLlm classes into the global namespace so callers
21
- # (and the generated e2e suite) can reference them unqualified. The native
22
- # extension has already been required above, so every type constant is defined
23
- # under LiterLlm by this point.
24
- LiterLlm.constants.each do |const_name|
25
- value = LiterLlm.const_get(const_name)
26
- ::Object.const_set(const_name, value) if value.is_a?(Module) && !::Object.const_defined?(const_name)
27
- end
20
+ # Keep generated types under LiterLlm. Publishing generated constants
21
+ # into Object makes generic names collide with unrelated Ruby libraries.
data/sig/types.rbs CHANGED
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:7bacb53ba62128cddbad2af9594a8f7a0d67daee3cb1a21a2569382109274fca
2
+ # alef:hash:a1989c3dfb77377970d88272370ba76653a7c87963705fabadca288653ab7055
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
 
@@ -627,8 +627,9 @@ module LiterLlm
627
627
  attr_accessor temperature: Float?
628
628
  attr_accessor max_output_tokens: Integer?
629
629
  attr_accessor metadata: json_value?
630
+ attr_accessor stream: bool?
630
631
 
631
- def initialize: (?model: String, ?input: json_value, ?instructions: String, ?tools: Array[ResponseTool], ?temperature: Float, ?max_output_tokens: Integer, ?metadata: json_value) -> void
632
+ def initialize: (?model: String, ?input: json_value, ?instructions: String, ?tools: Array[ResponseTool], ?temperature: Float, ?max_output_tokens: Integer, ?metadata: json_value, ?stream: bool) -> void
632
633
  end
633
634
 
634
635
  class ResponseTool
@@ -874,7 +875,7 @@ module LiterLlm
874
875
  end
875
876
 
876
877
  class ReasoningEffort
877
- type value = :low | :medium | :high
878
+ type value = :low | :medium | :high | :minimal | :max
878
879
  end
879
880
 
880
881
  class EmbeddingFormat
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.12.2
4
+ version: 1.14.0
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-01 00:00:00.000000000 Z
11
+ date: 2026-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys