diff options
author | Alexander_Kabui | 2024-09-11 12:11:40 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-09-11 12:11:40 +0300 |
commit | 07d24028183e1ec262c7920c4ad1d06b71ad462f (patch) | |
tree | ad55cf00927d271b34c3cad16661564e3369e626 /gn3 | |
parent | 3c17971ca54260f8a436dd9f3a0db8d5d42b4418 (diff) | |
download | genenetwork3-07d24028183e1ec262c7920c4ad1d06b71ad462f.tar.gz |
Update docs on use for custom request when query fahamu Api.
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/llms/client.py | 12 |
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 |