aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-02 17:02:03 +0300
committerAlexander_Kabui2024-09-02 17:02:03 +0300
commit41c352926ca178e65d6c948fdf93b0f987e2878a (patch)
tree7fea580ea67558a2d345041db6480b82e5efbf8f
parent38d867bdead1ebd1af0846d54474d9c962cd7ceb (diff)
downloadgenenetwork3-41c352926ca178e65d6c948fdf93b0f987e2878a.tar.gz
Remove redundant function for fetching data with task_id.
-rw-r--r--gn3/llms/client.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/gn3/llms/client.py b/gn3/llms/client.py
index 401355a..9bcb2e3 100644
--- a/gn3/llms/client.py
+++ b/gn3/llms/client.py
@@ -69,16 +69,6 @@ class GeneNetworkQAClient(Session):
self.mount("https://", adapter)
self.mount("http://", adapter)
- def get_answer_using_task_id(self, extend_url, my_auth):
- """call this method with task id to fetch response"""
- try:
- response = requests.get(
- self.answer_url + extend_url, data={}, headers=my_auth)
- response.raise_for_status()
- return response
- except requests.exceptions.RequestException as error:
- raise error
-
@staticmethod
def negative_status_msg(response):
""" handler for non 200 response from fahamu api"""