Skip to content

Commit

Permalink
Fix printout check for num code blocks (microsoft#1902)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgerrits authored Mar 7, 2024
1 parent d753782 commit 457a5a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogen/agentchat/conversable_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ def _generate_code_execution_reply_using_executor(
continue

num_code_blocks = len(code_blocks)
if num_code_blocks > 1:
if num_code_blocks == 1:
print(
colored(
f"\n>>>>>>>> EXECUTING CODE BLOCK (inferred language is {code_blocks[0].language})...",
Expand Down

0 comments on commit 457a5a1

Please sign in to comment.