llmshim 0.18.0 → 0.20.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/lib/llmshim/types.rb +2 -1
- data/lib/llmshim/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f42561a307dbdb9e2803643b2c4287ffb3a290e66b12e0d57c48b71bcfc7ddf
|
|
4
|
+
data.tar.gz: 5fda4e40148c695c7785539984dd9deee426673198c6bf5cb10d3ff61da2951f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 431f7b1da7d82af6e01733fa62e023aa6b0828d0abb63a95c304b3c018c0f23210a8292aadb30d981ee065f93dcef3061efff2c3d14eb0e210d7b94d97ca0520
|
|
7
|
+
data.tar.gz: 8299db7cf983eb2b02b1e0e107e6da71eef4f74ee9e2c048af65baf55509bf26e79cc0c7721226429311270fd7946698ac27a874eadf6320b99d7b9fbc9e393d
|
data/lib/llmshim/types.rb
CHANGED
|
@@ -71,7 +71,7 @@ module Llmshim
|
|
|
71
71
|
#
|
|
72
72
|
# +raw+ retains the original parsed Hash for forward compatibility.
|
|
73
73
|
ChatResponse = Struct.new(
|
|
74
|
-
:id, :model, :provider, :message, :reasoning, :usage, :latency_ms, :raw, :served_model, :finish_reason,
|
|
74
|
+
:id, :model, :provider, :message, :reasoning, :usage, :latency_ms, :raw, :served_model, :finish_reason, :created_at,
|
|
75
75
|
keyword_init: true
|
|
76
76
|
) do
|
|
77
77
|
def self.from_hash(hash)
|
|
@@ -85,6 +85,7 @@ module Llmshim
|
|
|
85
85
|
latency_ms: hash["latency_ms"],
|
|
86
86
|
raw: hash,
|
|
87
87
|
served_model: hash["x-llmshim-served-model"],
|
|
88
|
+
created_at: hash["created_at"],
|
|
88
89
|
finish_reason: hash["finish_reason"]
|
|
89
90
|
)
|
|
90
91
|
end
|
data/lib/llmshim/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: llmshim
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.20.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sanjay Nadhavajhala
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|