From 3de74bf43245088ff4d07af4fd796eb510ff73bb Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Mon, 2 Sep 2024 16:39:09 +0300 Subject: Add docs for custom request method. --- gn3/llms/client.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gn3/llms') diff --git a/gn3/llms/client.py b/gn3/llms/client.py index c225acc..4858ceb 100644 --- a/gn3/llms/client.py +++ b/gn3/llms/client.py @@ -97,7 +97,13 @@ class GeneNetworkQAClient(Session): return res, 1 def custom_request(self, method, url, *args, **kwargs): - """ make custom request to fahamu api ask and get response""" + """ + Make a custom request to the Fahamu API to ask and get a response. + This is a custom method, which is the current default for fetching items, + as it overrides the adapter provided above. + This function was created to debug the slow response rate of Fahamu and + provide custom a response. + """ max_retries = 50 retry_delay = 3 response_msg = { -- cgit v1.2.3