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 +4 -4
- data/lib/venice_client/api_client.rb +5 -0
- data/lib/venice_client/version.rb +1 -1
- data/update.sh +9 -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: 40b365f471185fed66c7e1166e210433fd45033bc96a1d4b768d05799604a2ae
|
|
4
|
+
data.tar.gz: 2e423b5c204e079654dbbb1cd39e0414089e406415f709c163633224cee37224
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
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
|