This commit is contained in:
Saifeddine ALOUI 2025-01-25 02:16:57 +01:00
parent fab35e47c5
commit 8622524726

View File

@ -193,9 +193,9 @@ class AIPersonality:
self._prompts_list: List[str] = [] self._prompts_list: List[str] = []
self._welcome_message: str = "Welcome! I am lollms (Lord of LLMs) A free and open assistant built by ParisNeo. What can I do for you today?" self._welcome_message: str = "Welcome! I am lollms (Lord of LLMs) A free and open assistant built by ParisNeo. What can I do for you today?"
self._include_welcome_message_in_discussion: bool = True self._include_welcome_message_in_discussion: bool = True
self._user_message_prefix: str = f"human:" self._user_message_prefix: str = f"user"
self._link_text: str = "\n" self._link_text: str = "\n"
self._ai_message_prefix: str = f"lollms:" self._ai_message_prefix: str = f"assistant"
# Extra # Extra
self._dependencies: List[str] = [] self._dependencies: List[str] = []
@ -2827,7 +2827,7 @@ class StateMachine:
if param_count == 3: if param_count == 3:
# Old version of the function # Old version of the function
return func(command, full_context, client) return func(command, full_context, client)
elif param_count == 5: elif param_count >= 5:
# New version of the function # New version of the function
return func(command, full_context, callback, context_state, client) return func(command, full_context, callback, context_state, client)
else: else:
@ -4626,7 +4626,7 @@ transition-all duration-300 ease-in-out">
return module, code return module, code
def yes_no(self, question: str, context:str="", max_answer_length: int = 50, conditionning="") -> bool: def yes_no(self, question: str, context:str="", max_answer_length: int = 500, conditionning="") -> bool:
""" """
Analyzes the user prompt and answers whether it is asking to generate an image. Analyzes the user prompt and answers whether it is asking to generate an image.