aboutsummaryrefslogtreecommitdiff
path: root/gn3/llms
diff options
context:
space:
mode:
authorAlexander_Kabui2024-01-17 19:29:56 +0300
committerAlexander_Kabui2024-01-17 19:29:56 +0300
commit4468e59d1783e154612232f5da2d24a762d06681 (patch)
tree6b89514437ad5f2864bed8162bed3d005b77afb2 /gn3/llms
parent51c079116b2e81b49e1d1e8aa82f9aba74442ff5 (diff)
downloadgenenetwork3-4468e59d1783e154612232f5da2d24a762d06681.tar.gz
Increase timeout to 30s to fix 'Read timed out issue
Diffstat (limited to 'gn3/llms')
-rw-r--r--gn3/llms/client.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gn3/llms/client.py b/gn3/llms/client.py
index d8496dd..46ddc96 100644
--- a/gn3/llms/client.py
+++ b/gn3/llms/client.py
@@ -59,7 +59,7 @@ class GeneNetworkQAClient(Session):
BASE_URL = 'https://genenetwork.fahamuai.com/api/tasks'
- def __init__(self, account, api_key, version="v3", timeout=5, total_retries=5, backoff_factor=30):
+ def __init__(self, account, api_key, version="v3", timeout=30, total_retries=5, backoff_factor=30):
super().__init__()
self.headers.update(
{"Authorization": "Bearer " + api_key})
@@ -208,4 +208,3 @@ class GeneNetworkQAClient(Session):
return answer, context
else:
return res, "Unfortunately, I have nothing."
-