Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
pavi committed Jul 22, 2024
1 parent d768335 commit f5f4d83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion geminikit/asynic_gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion geminikit/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def get_long_description():
#
setup(
name="geminikit",
version="1.0.9",
version="1.1.0",
author="paviththanan",
author_email="[email protected]",
description="The python package that returns Response of Google Gemini through Cookies.",
Expand Down

0 comments on commit f5f4d83

Please sign in to comment.