diff options
author | Alexander_Kabui | 2024-01-08 10:29:56 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-01-08 10:29:56 +0300 |
commit | a0b898df86efde75e85d355b19daf47e2cb0fea7 (patch) | |
tree | 34cb22893f871b8a68b46094a8f3da6827f97958 /gn3 | |
parent | 716c9e0f1444267bbd99c5fe1cac4729a9643c7e (diff) | |
download | genenetwork3-a0b898df86efde75e85d355b19daf47e2cb0fea7.tar.gz |
disable process wait
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/llms/client.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gn3/llms/client.py b/gn3/llms/client.py index 18c0217..77ae32e 100644 --- a/gn3/llms/client.py +++ b/gn3/llms/client.py @@ -57,7 +57,7 @@ class GeneNetworkQAClient(Session): BASE_URL = 'https://genenetwork.fahamuai.com/api/tasks' - def __init__(self, account, api_key, version="v3", timeout=120, total_retries=5, backoff_factor=30): + def __init__(self, account, api_key, version="v3", timeout=5, total_retries=5, backoff_factor=30): super().__init__() self.headers.update( {"Authorization": "Bearer " + api_key}) @@ -132,8 +132,9 @@ class GeneNetworkQAClient(Session): return res, 1 def custom_request(self, method, url, *args, **kwargs): - max_retries = 5 - retry_delay = 10 + + max_retries = 1 + retry_delay = 1 response = super().request(method, url, *args, **kwargs) |