lib/omniai/speak.rb in omniai-1.3.0 vs lib/omniai/speak.rb in omniai-1.3.1
- old
+ new
@@ -82,9 +82,10 @@
# @yield [chunk]
#
# @return [Tempfile]
def process!(&block)
response = request!
+
raise HTTPError, response.flush unless response.status.ok?
if block
stream!(response:, &block)
else