Skip to content

Commit

Permalink
Instruct OmniAI to follow redirects for URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
ksylvest committed Jul 19, 2024
1 parent 28f9258 commit 403d59e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
omniai (1.6.3)
omniai (1.6.4)
event_stream_parser
http
zeitwerk
Expand Down
2 changes: 1 addition & 1 deletion lib/omniai/chat/url.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def fetch!
#
# @return [HTTP::Response]
def request!
response = HTTP.get(@uri)
response = HTTP.follow.get(@uri)
raise FetchError, response.flush unless response.status.success?

response
Expand Down
2 changes: 1 addition & 1 deletion lib/omniai/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module OmniAI
VERSION = '1.6.3'
VERSION = '1.6.4'
end

0 comments on commit 403d59e

Please sign in to comment.