aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-02 16:12:46 +0300
committerAlexander_Kabui2024-09-02 16:12:46 +0300
commit303fa9ed617ff843d663719dd76d3a08c00cf724 (patch)
tree9f494bf1a569e5048617b8fce6b8ffb0c4bbd784
parent742beb6ee663bc9ae5409461d2be4b2144b8893e (diff)
downloadgenenetwork3-303fa9ed617ff843d663719dd76d3a08c00cf724.tar.gz
Rename task_id to task_object.
-rw-r--r--gn3/llms/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/llms/client.py b/gn3/llms/client.py
index ad6c400..c225acc 100644
--- a/gn3/llms/client.py
+++ b/gn3/llms/client.py
@@ -90,9 +90,9 @@ class GeneNetworkQAClient(Session):
res = self.custom_request('POST', f"{self.base_url}{ex_url}", *args, **kwargs)
return res, json.loads(res.text)
- def get_answer(self, taskid, *args, **kwargs):
+ def get_answer(self, task_obj, *args, **kwargs):
"""Fahamu get answer interface"""
- query = f"{self.answer_url}?task_id={taskid['task_id']}"
+ query = f"{self.answer_url}?task_id={task_obj['task_id']}"
res = self.custom_request('GET', query, *args, **kwargs)
return res, 1