llmshim 0.19.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbe9b6812ce77a0f2a8a66ffb8e1e57933ab54ff4d704f92edfa6ace8f8dacf4
4
- data.tar.gz: '0329241e9215a094e277d6c0697fb9dfa229ed7ad0bcbb99194e2c3eb87a2e09'
3
+ metadata.gz: 6f42561a307dbdb9e2803643b2c4287ffb3a290e66b12e0d57c48b71bcfc7ddf
4
+ data.tar.gz: 5fda4e40148c695c7785539984dd9deee426673198c6bf5cb10d3ff61da2951f
5
5
  SHA512:
6
- metadata.gz: 7ba6a910e1bfc25f03573250cd2d34d09cac0aac0cbeadd98df89a264fd1b4d49644b6aaa4e20d9a6501ecaf7396a5317163f8b986f1fd94295b82e5366aa6ea
7
- data.tar.gz: 638dc7b56d8b9f0fa14afa3f90adb248053fd74c9db72ae4cb7a49d6dc33c7cf6dc72c9ad7d42e8b972d37dc8d7bc0f8eede724cec70be262314f3dbda72b5f0
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Llmshim
4
- VERSION = "0.19.0"
4
+ VERSION = "0.20.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llmshim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sanjay Nadhavajhala