diff --git a/geminikit/asynic_gemini.py b/geminikit/asynic_gemini.py index 7748a17..6042fa5 100644 --- a/geminikit/asynic_gemini.py +++ b/geminikit/asynic_gemini.py @@ -15,7 +15,7 @@ def __init__(self, cookies, SNlM0e, bott): self.conversation_id = "" self.response_id = "" self.choice_id = "" - self.client = httpx.AsyncClient(headers=header_main, follow_redirects=True) + self.client = httpx.AsyncClient(headers=header_main, follow_redirects=True,timeout=30.0) cookies = {key: str(value) for key, value in cookies.items()} self.client.cookies.update(cookies) self.SNlM0e = SNlM0e diff --git a/geminikit/gemini.py b/geminikit/gemini.py index 87f8568..0dff7cf 100644 --- a/geminikit/gemini.py +++ b/geminikit/gemini.py @@ -18,7 +18,7 @@ def __init__(self, cookies): self.conversation_id = "" self.response_id = "" self.choice_id = "" - self.client = httpx.Client(headers=header_main, follow_redirects=True) + self.client = httpx.Client(headers=header_main, follow_redirects=True, timeout=30.0) # Ensure cookies are strings and update the client cookies cookies = {key: str(value) for key, value in cookies.items()} diff --git a/setup.py b/setup.py index 786c025..38a3727 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ def get_long_description(): # setup( name="geminikit", - version="1.0.9", + version="1.1.0", author="paviththanan", author_email="rkpavi06@gmail.com", description="The python package that returns Response of Google Gemini through Cookies.",