Skip to content

Commit

Permalink
proxies not needed for async request (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitya52 committed Jan 3, 2024
1 parent 8862840 commit ea23b4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions refact_scratchpads_no_gpu/stream_results_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def completions_wait_batch(
t0 = time.time()
url = stream_results.url_get_the_best() + "completions-wait-batch"
try:
async with aio_session.post(url, json=my_desc, timeout=WAIT_TIMEOUT, proxies={"http": "", "https": ""}) as resp:
async with aio_session.post(url, json=my_desc, timeout=WAIT_TIMEOUT) as resp:
txt = await resp.text()
j = await resp.json()
except asyncio.TimeoutError:
Expand Down Expand Up @@ -200,7 +200,7 @@ async def upload_results_coroutine(self):
j = dict()
try:
url = stream_results.url_get_the_best() + "completion-upload-results"
async with self.aio_session.post(url, json=upload_dict, timeout=2, proxies={"http": "", "https": ""}) as resp:
async with self.aio_session.post(url, json=upload_dict, timeout=2) as resp:
txt = await resp.text()
j = await resp.json()
except asyncio.exceptions.TimeoutError as e:
Expand Down

0 comments on commit ea23b4f

Please sign in to comment.