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

Commit 3ecbc12

Browse files
committed
add timeout default
1 parent b194d7b commit 3ecbc12

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

chatgpt/chatgpt.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414

1515
class HTTPSession:
16-
def __init__(self, timeout=30):
16+
DEFAULT_TIMEOUT = 120
17+
18+
def __init__(self, timeout=DEFAULT_TIMEOUT):
1719
self._session = tls_client.Session(client_identifier="chrome_107")
1820
self._timeout = timeout
1921

@@ -203,7 +205,7 @@ def __init__(
203205
password: str = None,
204206
conversation_id: str = None,
205207
parent_message_id: str = None,
206-
timeout:int = 30
208+
timeout:int = None
207209
):
208210
"""
209211
Args:

0 commit comments

Comments
 (0)