From f39f1146035933d3aa5002a99b198fd3ff2d0c0a Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sat, 8 Jun 2024 00:28:22 +0200 Subject: [PATCH] enhanced --- lollms/personality.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lollms/personality.py b/lollms/personality.py index 739811e..94f92a0 100644 --- a/lollms/personality.py +++ b/lollms/personality.py @@ -3367,7 +3367,7 @@ The AI should respond in this format using data from actions_list: for call in function_calls: keys = [k for k in call.keys()] - if not "function_name" in keys: + if not ("function_name" in keys): key = keys[0] if len(keys)>0 else None d = call[key] if key else None function_name = key