-
-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async fix #550
base: main
Are you sure you want to change the base?
Async fix #550
Conversation
@@ -3,6 +3,7 @@ source "https://rubygems.org" | |||
# Include gem dependencies from ruby-openai.gemspec | |||
gemspec | |||
|
|||
gem "async-http-faraday", "~> 0.19.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't be part of gem deps, but will solely be used in tests.
@@ -12,6 +12,7 @@ class Client | |||
uri_base | |||
request_timeout | |||
extra_headers | |||
async |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New config option
@@ -78,6 +78,7 @@ def conn(multipart: false) | |||
f.use MiddlewareErrors if @log_errors | |||
f.response :raise_error | |||
f.response :json | |||
f.adapter :async_http if @async |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will require users to include async-http-faraday
in their app themselves.
All Submissions: