mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-18 20:27:58 +00:00
sync
This commit is contained in:
parent
d93b670cd6
commit
387f3e20ce
@ -3963,11 +3963,6 @@ class APScript(StateMachine):
|
|||||||
separate_output=False,
|
separate_output=False,
|
||||||
max_nested_function_calls=10):
|
max_nested_function_calls=10):
|
||||||
|
|
||||||
start_header_id_template = self.config.start_header_id_template
|
|
||||||
end_header_id_template = self.config.end_header_id_template
|
|
||||||
system_message_template = self.config.system_message_template
|
|
||||||
separator_template = self.config.separator_template
|
|
||||||
|
|
||||||
final_output = ""
|
final_output = ""
|
||||||
if len(self.personality.image_files)>0:
|
if len(self.personality.image_files)>0:
|
||||||
out, function_calls = self.generate_with_function_calls_and_images(context_details, self.personality.image_files, function_definitions, callback=callback)
|
out, function_calls = self.generate_with_function_calls_and_images(context_details, self.personality.image_files, function_definitions, callback=callback)
|
||||||
@ -3985,7 +3980,7 @@ class APScript(StateMachine):
|
|||||||
|
|
||||||
outputs = self.execute_function_calls(function_calls,function_definitions)
|
outputs = self.execute_function_calls(function_calls,function_definitions)
|
||||||
final_output = "\n".join([str(o) if type(o)==str else str(o[0]) if (type(o)==tuple or type(0)==list) and len(o)>0 else "" for o in outputs])
|
final_output = "\n".join([str(o) if type(o)==str else str(o[0]) if (type(o)==tuple or type(0)==list) and len(o)>0 else "" for o in outputs])
|
||||||
out += f"{separator_template}{start_header_id_template}function calls results{end_header_id_template}\n" + final_output + "\n"
|
out += f"{self.separator_template}"+ self.system_custom_header('function calls results') + final_output + "\n"
|
||||||
if prompt_after_execution:
|
if prompt_after_execution:
|
||||||
if separate_output:
|
if separate_output:
|
||||||
self.full(final_output)
|
self.full(final_output)
|
||||||
|
Loading…
Reference in New Issue
Block a user