aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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