From 75b38c8760c7f53af21fab8fc08befd7ef03c9de Mon Sep 17 00:00:00 2001 From: mitya Date: Tue, 5 Dec 2023 14:47:12 +0300 Subject: [PATCH] proxies not needed for async request --- refact_scratchpads_no_gpu/stream_results_async.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/refact_scratchpads_no_gpu/stream_results_async.py b/refact_scratchpads_no_gpu/stream_results_async.py index 087489054..c4aa8979f 100644 --- a/refact_scratchpads_no_gpu/stream_results_async.py +++ b/refact_scratchpads_no_gpu/stream_results_async.py @@ -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: @@ -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: