diff --git a/configs/config.yaml b/configs/config.yaml index a495b12..282f18a 100644 --- a/configs/config.yaml +++ b/configs/config.yaml @@ -10,7 +10,7 @@ show_news_panel: True # Security measures turn_on_code_execution: True turn_on_code_validation: True -turn_on_open_file_validation: False +turn_on_open_file_validation: True turn_on_send_file_validation: False force_accept_remote_access: false diff --git a/elf_docker_cfg/personal/configs/lollms_elf_config.yaml b/elf_docker_cfg/personal/configs/lollms_elf_config.yaml index 94790e1..f07ab2c 100644 --- a/elf_docker_cfg/personal/configs/lollms_elf_config.yaml +++ b/elf_docker_cfg/personal/configs/lollms_elf_config.yaml @@ -10,7 +10,7 @@ show_news_panel: True # Security measures turn_on_code_execution: True turn_on_code_validation: True -turn_on_open_file_validation: False +turn_on_open_file_validation: True turn_on_send_file_validation: False force_accept_remote_access: false diff --git a/elf_test_cfg/personal/configs/lollms_elf_config.yaml b/elf_test_cfg/personal/configs/lollms_elf_config.yaml index 94790e1..f07ab2c 100644 --- a/elf_test_cfg/personal/configs/lollms_elf_config.yaml +++ b/elf_test_cfg/personal/configs/lollms_elf_config.yaml @@ -10,7 +10,7 @@ show_news_panel: True # Security measures turn_on_code_execution: True turn_on_code_validation: True -turn_on_open_file_validation: False +turn_on_open_file_validation: True turn_on_send_file_validation: False force_accept_remote_access: false diff --git a/lollms/configs/config.yaml b/lollms/configs/config.yaml index 7da8fd3..7ae222b 100644 --- a/lollms/configs/config.yaml +++ b/lollms/configs/config.yaml @@ -11,7 +11,7 @@ show_news_panel: True turn_on_setting_update_validation: True turn_on_code_execution: True turn_on_code_validation: True -turn_on_open_file_validation: False +turn_on_open_file_validation: True turn_on_send_file_validation: False force_accept_remote_access: false diff --git a/lollms/personality.py b/lollms/personality.py index a0536bc..54e8d9e 100644 --- a/lollms/personality.py +++ b/lollms/personality.py @@ -1911,8 +1911,10 @@ class APScript(StateMachine): self.personality_config.config.save_config() else: self.load_personality_config() + def sink(self, s=None,i=None,d=None): pass + def settings_updated(self): """ To be implemented by the processor when the settings have changed @@ -2068,7 +2070,8 @@ class APScript(StateMachine): def generate(self, prompt, max_size, temperature = None, top_k = None, top_p=None, repeat_penalty=None, repeat_last_n=None, callback=None, debug=False ): return self.personality.generate(prompt, max_size, temperature, top_k, top_p, repeat_penalty, repeat_last_n, callback, debug=debug) - def run_workflow(self, prompt:str, previous_discussion_text:str="", callback: Callable[[str, MSG_TYPE, dict, list], bool]=None, context_details:dict=None): + from lollms.client_session import Client + def run_workflow(self, prompt:str, previous_discussion_text:str="", callback: Callable[[str, MSG_TYPE, dict, list], bool]=None, context_details:dict=None, client:Client=None): """ This function generates code based on the given parameters. @@ -3115,6 +3118,7 @@ The AI should respond in this format using data from actions_list: ''' def build_a_folder_link(self, folder_path, link_text="Open Folder"): + folder_path = str(folder_path).replace('\\','/') return ''' '''+f'''{link_text}''' - def build_a_file_link(self, folder_path, link_text="Open Folder"): + def build_a_file_link(self, file_path, link_text="Open Folder"): + file_path = str(file_path).replace('\\','/') return ''' -