From 8d0b5d6d47c3a157c00bdabf78dec81cddbf65a6 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sat, 8 Feb 2025 03:13:14 +0100 Subject: [PATCH] enhanced --- lollms/personality.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lollms/personality.py b/lollms/personality.py index 48ae248..d4188b1 100644 --- a/lollms/personality.py +++ b/lollms/personality.py @@ -4760,7 +4760,15 @@ transition-all duration-300 ease-in-out"> """ return self.personality.yes_no(question, context, max_answer_length, conditionning=conditionning, return_explanation=return_explanation, callback=callback) - def multichoice_question(self, question: str, possible_answers:list, context:str = "", max_answer_length: int = 1024, conditionning="", return_justification=False) -> int: + def multichoice_questionmultichoice_question( + self, + question: str, + possible_answers: list, + context: str = "", + max_answer_length: int = None, + conditionning: str = "", + return_explanation: bool = False + ) -> dict: """ Interprets a multi-choice question from a users response. This function expects only one choice as true. All other choices are considered false. If none are correct, returns -1. @@ -4773,7 +4781,7 @@ transition-all duration-300 ease-in-out"> Returns: int: Index of the selected option within the possible_ansers list. Or -1 if there was not match found among any of them. """ - return self.personality.multichoice_question(question, possible_answers, context, max_answer_length, conditionning, return_justification) + return self.personality.multichoice_question(question, possible_answers, context, max_answer_length, conditionning, return_explanation) def multichoice_ranking(self, question: str, possible_answers:list, context:str = "", max_answer_length: int = 50, conditionning="") -> int: """