diff options
author | Alexander_Kabui | 2024-05-24 15:34:53 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-05-24 15:34:53 +0300 |
commit | 13bb57cbd191ffe6e40e830ca08b9191b2dc5700 (patch) | |
tree | 868782de43ae1e3235e5829fac1dcf3ee750d59f /gn3/llms | |
parent | 9806f3cf708f8eb4e1248eb5059deee53a3887c6 (diff) | |
download | genenetwork3-13bb57cbd191ffe6e40e830ca08b9191b2dc5700.tar.gz |
Pass query as an argument to api_client ask method.
Diffstat (limited to 'gn3/llms')
-rw-r--r-- | gn3/llms/process.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/llms/process.py b/gn3/llms/process.py index eba7e4b..d53a7fd 100644 --- a/gn3/llms/process.py +++ b/gn3/llms/process.py @@ -118,7 +118,7 @@ def get_gnqa(query, auth_token, data_dir=""): """ api_client = GeneNetworkQAClient(api_key=auth_token) - res, task_id = api_client.ask('?ask=' + quote(query), auth_token) + res, task_id = api_client.ask('?ask=' + quote(query), query=query) if task_id == 0: raise RuntimeError(f"Error connecting to Fahamu Api: {str(res)}") res, status = api_client.get_answer(task_id) |