aboutsummaryrefslogtreecommitdiff
path: root/gn3/llms
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-02 16:39:09 +0300
committerAlexander_Kabui2024-09-02 16:39:09 +0300
commit3de74bf43245088ff4d07af4fd796eb510ff73bb (patch)
treead2e42c45e8ec119b4d5edc4aa76dbdf7c0efe55 /gn3/llms
parent303fa9ed617ff843d663719dd76d3a08c00cf724 (diff)
downloadgenenetwork3-3de74bf43245088ff4d07af4fd796eb510ff73bb.tar.gz
Add docs for custom request method.
Diffstat (limited to 'gn3/llms')
-rw-r--r--gn3/llms/client.py8
1 files changed, 7 insertions, 1 deletions
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 = {