ruby-openai icon indicating copy to clipboard operation
ruby-openai copied to clipboard

(feat): add Faraday proxy support

Open danilrwx opened this issue 7 months ago • 3 comments

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?

danilrwx avatar Jul 17 '24 09:07 danilrwx