raix 0.8.3 → 0.8.4

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: 29fc354187c6971947ca178f55eae07ec23af8f2f3435dec89e58a9231de5a94
4
- data.tar.gz: 70c5289b69f81f741b3e41fd1bb69d081f22e78aa65de34e8cb11c6190e700c3
3
+ metadata.gz: 77197d6de1d77373260029d955fd0110990b7c562a279d887130ee4f95909377
4
+ data.tar.gz: d811d21316bba7c92797dff98c044871ec4382998b77090f29348217156698df
5
5
  SHA512:
6
- metadata.gz: 4fbeb53566e02702163055d966e4ed14e8bc4a76a2ebb76191bcfea6175e250943c55817e1cbe4325c42a890c261365231f984bf1ce3855af6929a640457ca15
7
- data.tar.gz: 942185162e40960170e64c5c4d93edc58ba37429efb0b19ded2f997fa60d70d2aaafad1788694d964ba5173e0ef0dfbab781b6e61c17f6e996f7dad083984197
6
+ metadata.gz: 9a513c9c82ef57ba4beb9681a02111a5207c9418b6f0b26015e9ad299d889b8a65644d594c11246ff7c70a5354419fc3932a8a776072757e615b8afbfc48ca98
7
+ data.tar.gz: ab0743ed3d99efd20886053b2d7648fc6dec7b551d48c5f86fee9689441dfbda0280e0c693766fa8f03c944f7dbfc459c8301f2b3bb969de47e3f4bbfbf23d0b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- raix (0.8.3)
4
+ raix (0.8.4)
5
5
  activesupport (>= 6.0)
6
6
  faraday-retry (~> 2.0)
7
7
  open_router (~> 0.2)
data/README.md CHANGED
@@ -226,6 +226,7 @@ class CustomDispatchExample
226
226
  result
227
227
  end
228
228
  end
229
+ ```
229
230
 
230
231
  #### Function Call Caching
231
232
 
@@ -239,7 +240,7 @@ class CachedFunctionExample
239
240
  function :expensive_operation do |arguments|
240
241
  "Result of expensive operation with #{arguments}"
241
242
  end
242
-
243
+
243
244
  # Override dispatch_tool_function to enable caching for all functions
244
245
  def dispatch_tool_function(function_name, arguments)
245
246
  # Pass the cache to the superclass implementation
@@ -140,7 +140,7 @@ module Raix
140
140
  content = res.dig("choices", 0, "message", "content")
141
141
 
142
142
  transcript << { assistant: content } if save_response
143
- content = content.squish
143
+ content = content.strip
144
144
 
145
145
  if json
146
146
  # Make automatic JSON parsing available to non-OpenAI providers that don't support the response_format parameter
data/lib/raix/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Raix
4
- VERSION = "0.8.3"
4
+ VERSION = "0.8.4"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Obie Fernandez
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-05-01 00:00:00.000000000 Z
10
+ date: 2025-05-07 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport