Skip to content
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

docs(readme): add Faraday proxy example #539

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cpb
Copy link

@cpb cpb commented Oct 19, 2024

Why

As per: #502 (comment) @alexrudall prefers to use the existing block form of OpenAI::Client.new to configure the Faraday middleware with a proxy.

What

  1. Changes the ##### Faraday middleware section to support multiple use cases for passing a block to OpenAI::Client.new.
  2. Adds an example which configures Faraday middleware with a web debugging proxy.

Obviates:

@cpb cpb mentioned this pull request Oct 19, 2024
3 tasks
@alexrudall
Copy link
Owner

Thanks @CBP! Could you add a bit about how to set up the web debugging proxy? Like, what is that? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants