This commit is contained in:
Saifeddine ALOUI 2024-06-08 00:28:22 +02:00
parent 4f7bd10356
commit f39f114603

View File

@ -3367,7 +3367,7 @@ The AI should respond in this format using data from actions_list:
for call in function_calls: for call in function_calls:
keys = [k for k in call.keys()] 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 key = keys[0] if len(keys)>0 else None
d = call[key] if key else None d = call[key] if key else None
function_name = key function_name = key