From 52a1ecf271531200514c772b46101ef25a794b57 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Mon, 12 Feb 2024 12:53:21 +0300 Subject: pep8 formatting --- gn3/llms/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gn3/llms') diff --git a/gn3/llms/client.py b/gn3/llms/client.py index 200cfd2..5db19e4 100644 --- a/gn3/llms/client.py +++ b/gn3/llms/client.py @@ -122,7 +122,7 @@ class GeneNetworkQAClient(Session): askUrl = self.BASE_URL + exUrl res = self.custom_request('POST', askUrl, *args, **kwargs) if (res.status_code != 200): - return self.negativeStatusMsg(res), 0 + return self.negative_status_msg(res), 0 task_id = self.getTaskIDFromResult(res) return res, task_id @@ -130,7 +130,7 @@ class GeneNetworkQAClient(Session): query = self.answer_url + self.extendTaskID(taskid) res = self.custom_request('GET', query, *args, **kwargs) if (res.status_code != 200): - return self.negativeStatusMsg(res), 0 + return self.negative_status_msg(res), 0 return res, 1 def custom_request(self, method, url, *args, **kwargs): @@ -206,4 +206,4 @@ class GeneNetworkQAClient(Session): context = resp_text.get('data', {}).get('context', '') return answer, context else: - return res, "Unfortunately, I have nothing." + return res, "Unfortunately, I have nothing." \ No newline at end of file -- cgit v1.2.3