Skip to content
This repository was archived by the owner on Aug 10, 2023. It is now read-only.

Commit 7ae5ac4

Browse files
author
Antonio Cheong
committed
bugfix attempt 2
1 parent 90cb786 commit 7ae5ac4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/revChatGPT/V3.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ def __init__(
5858
self.timeout: float = timeout
5959
self.proxy = proxy
6060
self.session = requests.Session()
61-
self.session.proxies = proxy
61+
self.session.proxies.update(
62+
{
63+
"http": proxy,
64+
"https": proxy,
65+
}
66+
)
6267
proxy = (
6368
proxy or os.environ.get("all_proxy") or os.environ.get("ALL_PROXY") or None
6469
)

0 commit comments

Comments
 (0)