liter_llm 1.4.0.pre.rc.26-x86_64-linux → 1.4.0.pre.rc.27-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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/liter_llm_rb.so +0 -0
  3. data/sig/types.rbs +17 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f13345939d2e12ce004510aea8e1feaca906a4d99064963e62902f07eceddf11
4
- data.tar.gz: 117312b7f21b8f04fe89bed992e88db6f514e392b4ecb12a201f7cd1af200d6b
3
+ metadata.gz: 883494e4d2cd69849909a810b0bfe2aea1c8707055b3614b09d68920623aff75
4
+ data.tar.gz: 504ec8ce7d395e2556e12e6e96b27410f69a4a82170269b612531c6aba61063e
5
5
  SHA512:
6
- metadata.gz: 570a169d22ee830d689cfd2664c8b4ad56d398fd6d23edea7cc07a557de56900c5d8e1255f6ddc51e6fa13e7e546c6d215e337d55a8cdf35870cef482ae990f1
7
- data.tar.gz: fb3faf21c824a34bb601dd17d19cd1e66e92d73333b7eae341213f0c3282404c5f9680f9f590f24761690d38faeb55231203ae81350230ec2280ae17d337cca5
6
+ metadata.gz: 8ca27aee5fe47a5af419cf1e01d43a8fac41c2e80893471fe24f7809cdd62effcb928b59be7c0e2fb064474ea45e7c441d736628d6c6cca9b50317cc22b14502
7
+ data.tar.gz: 5c25a760b4f9673fcb33d94045b38e6319ad8b83264b23cbb3f9b60e02e343b13c0b355afa14aa34acd0697d63fe18e8321f35c717da3c079047044a835bc5d6
data/lib/liter_llm_rb.so CHANGED
Binary file
data/sig/types.rbs CHANGED
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:1c78feab1056e56c1f30805bd831569690afad159a582b7179dffbc0f1aacd96
2
+ # alef:hash:4732d7c2b72dd95da580860916bb13bd286d6d51cef57a132fc50221862bc78f
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
  # Issues & docs: https://github.com/kreuzberg-dev/alef
@@ -137,8 +137,23 @@ module Liter_llm
137
137
  attr_accessor prompt_tokens: Integer
138
138
  attr_accessor completion_tokens: Integer
139
139
  attr_accessor total_tokens: Integer
140
+ attr_accessor prompt_tokens_details: PromptTokensDetails
140
141
 
141
- def initialize: (prompt_tokens: Integer, completion_tokens: Integer, total_tokens: Integer) -> void
142
+ def initialize: (prompt_tokens: Integer, completion_tokens: Integer, total_tokens: Integer, ?prompt_tokens_details: PromptTokensDetails) -> void
143
+ end
144
+
145
+ class PromptTokensDetails
146
+ # Breakdown of tokens used in the prompt portion of a request.
147
+ #
148
+ # `cached_tokens` is included in `Usage::prompt_tokens` — it is *not* an
149
+ # additional charge on top of the prompt token count. When pricing supports
150
+ # a `cache_read_input_token_cost`, the cached portion is billed at the
151
+ # discounted rate and the remainder at the regular input rate.
152
+
153
+ attr_accessor cached_tokens: Integer
154
+ attr_accessor audio_tokens: Integer
155
+
156
+ def initialize: (cached_tokens: Integer, audio_tokens: Integer) -> void
142
157
  end
143
158
 
144
159
  class ChatCompletionRequest
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liter_llm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0.pre.rc.26
4
+ version: 1.4.0.pre.rc.27
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Na'aman Hirschfeld