From 7bd98e7fec019a0244a6202769c80b0ced32d211 Mon Sep 17 00:00:00 2001 From: Veronica Valeros Date: Fri, 22 Mar 2024 14:08:10 +0100 Subject: [PATCH] Ask to proceed based on cost price of action --- hermeneisGPT.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hermeneisGPT.py b/hermeneisGPT.py index 8ed451e..1882989 100644 --- a/hermeneisGPT.py +++ b/hermeneisGPT.py @@ -353,7 +353,13 @@ def main(): return # Run automatic mode with sqlite db - translate_mode_automatic(client, config, args) + calculate_cost_analysis(config, args) + print("Proceeding with the following actions will incur costs. Do you wish to continue? (Y/N)") + user_input = input() + + if user_input == "Y" or user_input == "y": + # Run automatic mode with sqlite db + translate_mode_automatic(client, config, args) except Exception as err: logger.info("Exception in main()")