diff --git a/installer/client/cli/helper.py b/installer/client/cli/helper.py index b746f72..3eafa08 100644 --- a/installer/client/cli/helper.py +++ b/installer/client/cli/helper.py @@ -23,7 +23,6 @@ class Session: # If no files are found, return None if not full_path_files: - print("No files found in the directory.") return None # Find the file with the most recent modification time diff --git a/installer/client/cli/utils.py b/installer/client/cli/utils.py index 51bf436..b145207 100644 --- a/installer/client/cli/utils.py +++ b/installer/client/cli/utils.py @@ -161,13 +161,16 @@ class Standalone: config_directory, f"patterns/{self.pattern}/system.md" ) session_message = "" + user = "" if self.args.session: from .helper import Session session = Session() session_message = session.read_from_session( self.args.session) - user = session_message + '\n' + input_data - user = input_data + if session_message: + user = session_message + '\n' + input_data + else: + user = input_data user_message = {"role": "user", "content": f"{input_data}"} wisdom_File = os.path.join(current_directory, wisdomFilePath) buffer = ""