From 07d24028183e1ec262c7920c4ad1d06b71ad462f Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 11 Sep 2024 12:11:40 +0300 Subject: Update docs on use for custom request when query fahamu Api. --- gn3/llms/client.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'gn3') 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 -- cgit v1.2.3