liter_llm 2.2.0-x86_64-linux → 2.2.3-x86_64-linux

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: 83e28d33b3f9f8f6376c5cb2212f0b96b6614cd87574dcc6a59210701d6e065f
4
- data.tar.gz: 7fb32c8784637600ebbdb8e13a05e8fa76db8b189765b21dfdd2a0c71c7b91ce
3
+ metadata.gz: 27257a930767d43d57d0db74f8a89a46484824baacdd332e27bc8d4fba2c6c24
4
+ data.tar.gz: e00953ce55c2fa55aa23d3d5b3bdc4ffee007491b1a791870b65b1c2c2e60441
5
5
  SHA512:
6
- metadata.gz: 1741cd91ee040526000039a039371cae8723c122a23f52221f34b3f1963ec1184a528462960d3e060ce39a66ec77019b18b9329556bfca0e1f0715f49c86ada2
7
- data.tar.gz: 30ac039039a3ac9b91d4806e58ba6c0a1da4a3d7e9074342697db2abf0b1ee1e4b2fc476870a6020d1a5065034b8e3212bac337140c246c47bdf24fac3a11cb2
6
+ metadata.gz: f87f9d3e96c0dfe9de84463f34d76b2e7c57fa63be1cebb2834809d68f578443cb9467a3edf7d8227d3faba387d7a543be4502f05a1a7881d164eeeae1c3c120
7
+ data.tar.gz: 8b0ae8e036291d9f669510f85692cf891c2cedfa3aa43648edafcf0d07fc578754f8ce29d4649c8051999c3c865cd8a0ff15d8a1f6d809405966d632ea6c994a
@@ -1,10 +1,10 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:88d843936a293d3dbc8d7b28247e23b849ade6bdaec311f512475702e7f6d5d3
2
+ # alef:hash:d820b0eb3dcb8f85bafc275011fcc83d644d7df0454fe1d9863c79edf59a88c4
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.2.0"
9
+ VERSION = "2.2.3"
10
10
  end
data/lib/liter_llm_rb.so CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: data/lib/liter_llm_rb.so
3
- size: 35902544 bytes
4
- sha256: 361d9bbd177b0d906c6be0ee9d6e1c7d2484a56804d0fa018ecc9fd9275c7f79
3
+ size: 36416248 bytes
4
+ sha256: ba234c503787d8c297d911d281a33c379b4bd9dc3bb0b9a2785cc282ac0cacd8
data/sig/types.rbs CHANGED
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:d586cd0ed89b7c23a36a35404031b0152d6e4bb331734e021b41b776a7a22706
2
+ # alef:hash:424dd8b9d3e3891415d6de9d838e00ab814f2e2c14a31d9dca8f567fa8901e80
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify
5
5
 
@@ -109,6 +109,17 @@ module LiterLlm
109
109
  def initialize: (?max_entries: Integer, ?ttl: Integer, ?backend: CacheBackend) -> void
110
110
  end
111
111
 
112
+ class CatalogInfo
113
+ attr_reader source: String
114
+ attr_reader source_sha256: String
115
+ attr_reader fetched: String
116
+ attr_reader library_version: String
117
+ attr_reader schema_version: Integer
118
+ attr_reader origin: String
119
+
120
+ def initialize: (?source: String, ?source_sha256: String, ?fetched: String, ?library_version: String, ?schema_version: Integer, ?origin: String) -> void
121
+ end
122
+
112
123
  class CatalogRefreshConfig
113
124
  attr_reader enabled: bool
114
125
  attr_reader source_url: String
@@ -195,6 +206,17 @@ module LiterLlm
195
206
  def initialize: (?index: Integer, ?message: AssistantMessage, ?finish_reason: enum_FinishReason, ?logprobs: String) -> void
196
207
  end
197
208
 
209
+ class ClientOptions
210
+ attr_reader api_key: String
211
+ attr_reader base_url: String?
212
+ attr_reader timeout_secs: Integer?
213
+ attr_reader max_retries: Integer?
214
+ attr_reader max_response_bytes: Integer?
215
+ attr_reader model_hint: String?
216
+
217
+ def initialize: (?api_key: String, ?base_url: String, ?timeout_secs: Integer, ?max_retries: Integer, ?max_response_bytes: Integer, ?model_hint: String) -> void
218
+ end
219
+
198
220
  class CompletionTokensDetails
199
221
  attr_reader reasoning_tokens: Integer
200
222
 
@@ -520,6 +542,9 @@ module LiterLlm
520
542
  end
521
543
 
522
544
  class ModelInfo
545
+ attr_reader matched_key: String
546
+ attr_reader exact: bool
547
+ attr_reader price_known: bool
523
548
  attr_reader input_cost_per_token: Float
524
549
  attr_reader output_cost_per_token: Float
525
550
  attr_reader cache_read_input_token_cost: Float?
@@ -540,7 +565,7 @@ module LiterLlm
540
565
  attr_reader supports_prompt_caching: bool?
541
566
  attr_reader tiers: Array[ModelTier]
542
567
 
543
- def initialize: (?input_cost_per_token: Float, ?output_cost_per_token: Float, ?cache_read_input_token_cost: Float, ?cache_creation_input_token_cost: Float, ?input_cost_per_audio_token: Float, ?output_cost_per_audio_token: Float, ?output_cost_per_reasoning_token: Float, ?max_tokens: Integer, ?max_input_tokens: Integer, ?max_output_tokens: Integer, ?mode: String, ?supports_vision: bool, ?supports_function_calling: bool, ?supports_reasoning: bool, ?supports_structured_output: bool, ?supports_audio_input: bool, ?supports_audio_output: bool, ?supports_prompt_caching: bool, ?tiers: Array[ModelTier]) -> void
568
+ def initialize: (?matched_key: String, ?exact: bool, ?price_known: bool, ?input_cost_per_token: Float, ?output_cost_per_token: Float, ?cache_read_input_token_cost: Float, ?cache_creation_input_token_cost: Float, ?input_cost_per_audio_token: Float, ?output_cost_per_audio_token: Float, ?output_cost_per_reasoning_token: Float, ?max_tokens: Integer, ?max_input_tokens: Integer, ?max_output_tokens: Integer, ?mode: String, ?supports_vision: bool, ?supports_function_calling: bool, ?supports_reasoning: bool, ?supports_structured_output: bool, ?supports_audio_input: bool, ?supports_audio_output: bool, ?supports_prompt_caching: bool, ?tiers: Array[ModelTier]) -> void
544
569
  end
545
570
 
546
571
  class ModelObject
@@ -669,9 +694,10 @@ module LiterLlm
669
694
 
670
695
  class PromptTokensDetails
671
696
  attr_reader cached_tokens: Integer
697
+ attr_reader cache_creation_tokens: Integer
672
698
  attr_reader audio_tokens: Integer
673
699
 
674
- def initialize: (?cached_tokens: Integer, ?audio_tokens: Integer) -> void
700
+ def initialize: (?cached_tokens: Integer, ?cache_creation_tokens: Integer, ?audio_tokens: Integer) -> void
675
701
  end
676
702
 
677
703
  class ProviderCapabilities
@@ -1008,6 +1034,8 @@ module LiterLlm
1008
1034
 
1009
1035
  def self.capabilities: (String provider_name) -> ProviderCapabilities
1010
1036
 
1037
+ def self.catalog_info: () -> CatalogInfo?
1038
+
1011
1039
  def self.check_bound: (String context, Integer current_len, Integer incoming, Integer limit) -> void
1012
1040
 
1013
1041
  def self.clear: () -> void
@@ -1018,6 +1046,8 @@ module LiterLlm
1018
1046
 
1019
1047
  def self.completion_cost_with_cache: (String model, Integer prompt_tokens, Integer cached_tokens, Integer completion_tokens) -> Float?
1020
1048
 
1049
+ def self.completion_cost_with_cache_details: (String model, Integer prompt_tokens, Integer cached_tokens, Integer cache_creation_tokens, Integer completion_tokens) -> Float?
1050
+
1021
1051
  def self.complex_provider_names: () -> Array[String]
1022
1052
 
1023
1053
  def self.count_request_tokens: (String model, ChatCompletionRequest req) -> Integer
@@ -1028,12 +1058,16 @@ module LiterLlm
1028
1058
 
1029
1059
  def self.create_client_from_json: (String json) -> DefaultClient
1030
1060
 
1061
+ def self.create_client_with_options: (ClientOptions options) -> DefaultClient
1062
+
1031
1063
  def self.decode_data_url: (String url) -> DecodedDataUrl?
1032
1064
 
1033
1065
  def self.encode_data_url: (String bytes, ?String mime) -> String
1034
1066
 
1035
1067
  def self.ensure_crypto_provider: () -> void
1036
1068
 
1069
+ def self.exact_model_info: (String model) -> ModelInfo?
1070
+
1037
1071
  def self.install_catalog_overlay_from_str: (String catalog_json) -> void
1038
1072
 
1039
1073
  def self.model_info: (String model) -> ModelInfo?
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.2.0
4
+ version: 2.2.3
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Na'aman Hirschfeld
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-08 00:00:00.000000000 Z
11
+ date: 2026-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime