venice_client 1.0.22 → 1.0.23

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: 9a4a08bfc501e7685dbe04817ff8ee43adb27a84d7a7bfe844c8b9dc43500229
4
- data.tar.gz: 61cfe77caac8fe710f36dae62d9fd04bf5534533876087d52156b71a6f80dd81
3
+ metadata.gz: 40b365f471185fed66c7e1166e210433fd45033bc96a1d4b768d05799604a2ae
4
+ data.tar.gz: 2e423b5c204e079654dbbb1cd39e0414089e406415f709c163633224cee37224
5
5
  SHA512:
6
- metadata.gz: 9b6f592470f5a2daacad6aca8fc1339e5d313aadf9d039ef1c93a540d8daa6ecdfc93e1cd6247a19e52860235ba8cf5efbd03579ad4673c897ad41cebd969fb7
7
- data.tar.gz: 6d2332825b9670bf95dd38664e28ee3195c8c1c2805bd9876f785e3390325955df41213aa231a85ae742bc698fc96ff56e343a7f9bbea155675a3fb1d144a3c6
6
+ metadata.gz: 70f8c36c77bf2bf4b417967aed60d9198886c994ff9957545c4761ebe7ff27249b0981d4acb680670336f13387c3d47b42d7aebabd1448687ac10ecf11348400
7
+ data.tar.gz: 2a088907b0ae32217b3e474593b99607d63beb47e107a0a523524717a345029d89d8dc1d5617e2ebf1c64b0e32cb6965ef21cc39bf37e75c5d30698b6e852f18
@@ -228,6 +228,11 @@ module VeniceClient
228
228
  # ensuring a default content type
229
229
  content_type = response.headers['Content-Type'] || 'application/json'
230
230
 
231
+ # Return raw body for binary content types (video, audio, etc.)
232
+ if content_type.start_with?('video/') || content_type.start_with?('audio/') || content_type == 'application/octet-stream'
233
+ return body
234
+ end
235
+
231
236
  fail "Content-Type is not supported: #{content_type}" unless json_mime?(content_type)
232
237
 
233
238
  begin
@@ -11,5 +11,5 @@ Generator version: 7.14.0
11
11
  =end
12
12
 
13
13
  module VeniceClient
14
- VERSION = '1.0.22'
14
+ VERSION = '1.0.23'
15
15
  end
data/update.sh CHANGED
@@ -19,4 +19,12 @@ s/\["auto", "false", "true"\]/\["auto", "off", "on"\]/g
19
19
  s/self.enable_web_search = 'on'/self.enable_web_search = 'off'/g
20
20
  s/self.enable_web_search = 'false'/self.enable_web_search = 'off'/g
21
21
  s/\["stop", "length"\]/\["stop", "length", "tool_calls"\]/g
22
- SED_SCRIPT
22
+ SED_SCRIPT
23
+
24
+ # Fix binary content type handling in api_client.rb (video/mp4, audio/*, etc.)
25
+ sed -i "/fail \"Content-Type is not supported/i\\
26
+ # Return raw body for binary content types (video, audio, etc.)\\
27
+ if content_type.start_with?('video/') || content_type.start_with?('audio/') || content_type == 'application/octet-stream'\\
28
+ return body\\
29
+ end\\
30
+ " lib/venice_client/api_client.rb
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: venice_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.22
4
+ version: 1.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator