diff --git a/lollms/bindings_zoo b/lollms/bindings_zoo index b437345..f8cb4c1 160000 --- a/lollms/bindings_zoo +++ b/lollms/bindings_zoo @@ -1 +1 @@ -Subproject commit b437345c5d28e8442e30e0dcbd52e7c5c0414a67 +Subproject commit f8cb4c1c6dfc1bcd78f317e4d7461e47361c95b3 diff --git a/lollms/personalities_zoo b/lollms/personalities_zoo index dff6ac4..1f3f1bc 160000 --- a/lollms/personalities_zoo +++ b/lollms/personalities_zoo @@ -1 +1 @@ -Subproject commit dff6ac4a0a925532cbc2d1681c45bc59aaec4f57 +Subproject commit 1f3f1bca97c5f60f7e165881683563f655072125 diff --git a/lollms/settings.py b/lollms/settings.py index 15fbb7d..58dd9bb 100644 --- a/lollms/settings.py +++ b/lollms/settings.py @@ -69,29 +69,23 @@ class Settings: self.menu.show_commands_list() if show_personality_infos: - print() - print(f"{ASCIIColors.color_green}Current personality : {ASCIIColors.color_reset}{self.personality}") - print(f"{ASCIIColors.color_green}Version : {ASCIIColors.color_reset}{self.personality.version}") - print(f"{ASCIIColors.color_green}Author : {ASCIIColors.color_reset}{self.personality.author}") - print(f"{ASCIIColors.color_green}Description : {ASCIIColors.color_reset}{self.personality.personality_description}") - print() - + try: + print() + print(f"{ASCIIColors.color_green}Current personality : {ASCIIColors.color_reset}{self.personality}") + print(f"{ASCIIColors.color_green}Version : {ASCIIColors.color_reset}{self.personality.version}") + print(f"{ASCIIColors.color_green}Author : {ASCIIColors.color_reset}{self.personality.author}") + print(f"{ASCIIColors.color_green}Description : {ASCIIColors.color_reset}{self.personality.personality_description}") + print() + except: + pass if show_model_infos: - print() - print(f"{ASCIIColors.color_green}Current binding : {ASCIIColors.color_reset}{self.config['binding_name']}") - print(f"{ASCIIColors.color_green}Current model : {ASCIIColors.color_reset}{self.config['model_name']}") - print() - - - # If there is a disclaimer, show it - if self.personality.disclaimer != "": - print(f"\n{ASCIIColors.color_red}Disclaimer") - print(self.personality.disclaimer) - print(f"{ASCIIColors.color_reset}") - - if show_welcome_message and self.personality.welcome_message: - print(self.personality.name+": ", end="") - print(self.personality.welcome_message) + try: + print() + print(f"{ASCIIColors.color_green}Current binding : {ASCIIColors.color_reset}{self.config['binding_name']}") + print(f"{ASCIIColors.color_green}Current model : {ASCIIColors.color_reset}{self.config['model_name']}") + print() + except: + pass self.menu.main_menu() @@ -180,9 +174,6 @@ Participating personalities: ASCIIColors.error(f"Binding returned this exception : {ex}") ASCIIColors.error(f"{self.config.get_personality_path_infos()}") print("Please select a valid model or install a new one from a url") - self.menu.select_personality() - self.cond_tk = self.personality.model.tokenize(self.personality.personality_conditioning) - self.n_cond_tk = len(self.cond_tk) def reset_context(self): if self.personality.include_welcome_message_in_disucssion: diff --git a/setup.py b/setup.py index 0dc18fb..d186a52 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ def get_all_files(path): setuptools.setup( name="lollms", - version="1.1.67", + version="1.1.69", author="Saifeddine ALOUI", author_email="aloui.saifeddine@gmail.com", description="A python library for AI personality definition",