We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17c3ed4 commit 7b3bcebCopy full SHA for 7b3bceb
amadeusgpt/programs/sandbox.py
@@ -512,7 +512,7 @@ def llm_step(self, user_query):
512
513
# task program that is written by llm is automatically registered to be used in the future
514
515
- if qa_message['code'] is not None:
+ if qa_message['code'] is not None and qa_message['error_message'] is None:
516
TaskProgramLibrary.register_task_program(creator="llm")(qa_message['code'])
517
518
return qa_message
0 commit comments