Skip to content

Commit

Permalink
feat: support socks5 proxy for openai extension (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
plutoless authored Oct 18, 2024
1 parent 53fd561 commit dddb854
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def __init__(self, config: OpenAIChatGPTConfig):
"http": config.proxy_url,
"https": config.proxy_url,
}
logger.info(f"Setting proxies: {proxies}")
self.session.proxies.update(proxies)
self.client.session = self.session

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openai
numpy
requests
requests[socks]
pillow

0 comments on commit dddb854

Please sign in to comment.