ruby_llm-instrumentation 0.2.1 → 0.3.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/ruby_llm/instrumentation/chat.rb +1 -1
- data/lib/ruby_llm/instrumentation/version.rb +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: fde168567a99ebfefa370628581a109cc389f5127d3f5a0baf2e249394ee42c1
|
|
4
|
+
data.tar.gz: 30427a21ec2c1782175e415c3665689c33468d486d0ddce64d36880edf63efd3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dff453272f041dff54b83d3bac473817277a520b48af04ff204ebfc40975d122898ab458212e26760ddce906790e108e139ed092b1846369ce207fd15ea0cc51
|
|
7
|
+
data.tar.gz: bac401c71acc930207b6e48419c756c5b2b951e0d3071d4404175ab825b54b3a7204db3cae407456750b45a29314915587d46fd54239008e5c7e00fa10696dd5
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.3.0] - 2026-02-27
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- add `thinking_tokens` to the `complete_chat.ruby_llm` event payload. [#16](https://github.com/sinaptia/ruby_llm-instrumentation/pull/16) [@patriciomacadden](https://github.com/patriciomacadden)
|
|
13
|
+
|
|
8
14
|
## [0.2.1] - 2026-02-10
|
|
9
15
|
|
|
10
16
|
### Fixed
|
|
@@ -16,7 +16,7 @@ module RubyLLM
|
|
|
16
16
|
ActiveSupport::Notifications.instrument("complete_chat.ruby_llm", raw_payload) do |payload|
|
|
17
17
|
original_complete(&).tap do |response|
|
|
18
18
|
payload[:response] = response
|
|
19
|
-
%i[input_tokens output_tokens cached_tokens cache_creation_tokens].each do |field|
|
|
19
|
+
%i[input_tokens output_tokens cached_tokens cache_creation_tokens thinking_tokens].each do |field|
|
|
20
20
|
value = response.public_send(field)
|
|
21
21
|
payload[field] = value unless value.nil?
|
|
22
22
|
end
|