aboutsummaryrefslogtreecommitdiff
path: root/gn3/llms
diff options
context:
space:
mode:
authorAlexander_Kabui2024-02-12 12:53:21 +0300
committerAlexander_Kabui2024-02-12 12:53:21 +0300
commit52a1ecf271531200514c772b46101ef25a794b57 (patch)
tree9bde940296bd94412eb44c7a54d6adf2c1a80db7 /gn3/llms
parenta1741736c5b14af81e398d228e22d85de51d2c4b (diff)
downloadgenenetwork3-52a1ecf271531200514c772b46101ef25a794b57.tar.gz
pep8 formatting
Diffstat (limited to 'gn3/llms')
-rw-r--r--gn3/llms/client.py6
1 files changed, 3 insertions, 3 deletions
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