From 4468e59d1783e154612232f5da2d24a762d06681 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 17 Jan 2024 19:29:56 +0300 Subject: Increase timeout to 30s to fix 'Read timed out issue --- gn3/llms/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gn3') 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." - -- cgit v1.2.3