Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
merge pull request #201 from jjkoh95/remove-proxies-arg
Browse files Browse the repository at this point in the history
remove `proxies` argument for async client
  • Loading branch information
dsdanielpark authored Oct 3, 2023
2 parents 0d3d058 + a3a12d8 commit dcb106e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions bardapi/core_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ async def get_answer(self, input_text: str) -> dict:
params=params,
data=data,
timeout=self.timeout,
proxies=self.proxies,
follow_redirects=True,
headers=SESSION_HEADERS,
cookies=self.cookie_dict,
Expand Down Expand Up @@ -367,7 +366,6 @@ async def speech(self, input_text: str, lang: str = "en-US") -> dict:
params=params,
data=data,
timeout=self.timeout,
proxies=self.proxies,
)

# Post-processing of response
Expand Down Expand Up @@ -453,7 +451,6 @@ async def export_conversation(self, bard_answer, title: str = "") -> dict:
params=params,
data=data,
timeout=self.timeout,
proxies=self.proxies,
)
# Post-processing of response
resp_dict = json.loads(resp.content.splitlines()[3])
Expand Down Expand Up @@ -562,7 +559,6 @@ async def export_replit(
params=params,
data=data,
timeout=self.timeout,
proxies=self.proxies,
)

resp_dict = json.loads(resp.content.splitlines()[3])
Expand Down Expand Up @@ -678,7 +674,6 @@ async def ask_about_image(
"https://bard.google.com/_/BardChatUi/data/assistant.lamda.BardFrontendService/StreamGenerate",
params=params,
data=data,
proxies=self.proxies,
)

# Post-processing of response
Expand Down

0 comments on commit dcb106e

Please sign in to comment.