From 41c352926ca178e65d6c948fdf93b0f987e2878a Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Mon, 2 Sep 2024 17:02:03 +0300 Subject: Remove redundant function for fetching data with task_id. --- gn3/llms/client.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'gn3/llms') 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""" -- cgit v1.2.3