From ce6a5823265bc1ecc9289050e1978315746af888 Mon Sep 17 00:00:00 2001 From: sean1832 Date: Sat, 18 Feb 2023 20:12:45 +1100 Subject: [PATCH] refactor: rename read json file to read json --- brain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brain.py b/brain.py index 881a45c..e3836a9 100644 --- a/brain.py +++ b/brain.py @@ -25,11 +25,11 @@ def build(chunk_size=4000): print(info, '\n\n\n') result.append(info) - util.write_json_file(result, r'.user\brain-data.json') + util.write_json(result, r'.user\brain-data.json') def run_answer(query, model, temp, max_tokens, top_p, freq_penl, pres_penl, chunk_count): - brain_data = util.read_json_file(r'.user\brain-data.json') + brain_data = util.read_json(r'.user\brain-data.json') results = gpt.search_chunks(query, brain_data, chunk_count) answers = [] for result in results: