ruby-openai
ruby-openai copied to clipboard
(feat): add Faraday proxy support
Summary
Adding the ability to use a proxy when proxy from ENV is not suitable.
proxy = {
:uri => 'http://proxy.example.com',
:user => 'foo',
:password => 'bar'
}
OpenAI::Client.new(access_token: "access_token_goes_here", proxy: proxy)
All Submissions:
- [x] Have you followed the guidelines in our Contributing document?
- [x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
- [x] Have you added an explanation of what your changes do and why you'd like us to include them?