about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-11 12:11:40 +0300
committerAlexander_Kabui2024-09-11 12:11:40 +0300
commit07d24028183e1ec262c7920c4ad1d06b71ad462f (patch)
treead55cf00927d271b34c3cad16661564e3369e626
parent3c17971ca54260f8a436dd9f3a0db8d5d42b4418 (diff)
downloadgenenetwork3-07d24028183e1ec262c7920c4ad1d06b71ad462f.tar.gz
Update docs on use for custom request when query fahamu Api.
-rw-r--r--gn3/llms/client.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/gn3/llms/client.py b/gn3/llms/client.py
index 54a7a17..fbbddf0 100644
--- a/gn3/llms/client.py
+++ b/gn3/llms/client.py
@@ -86,11 +86,13 @@ class GeneNetworkQAClient(Session):
 
     def custom_request(self, method, url, *args, **kwargs):
         """
-        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.
+        Make a custom request to the Fahamu API
+        Note: We cannot use the adapter  above because Fahamu does not
+        have a task_id status tracking system.
+        If you query for a Fahamu task_id,
+        you might receive `{message: No data}` with a 200 status code.
+        This response is not conclusive since the task might be incomplete
+        and the status code is incorrect as well.
         """
         max_retries = 50
         retry_delay = 3