Skip to content

Commit

Permalink
Merge branch 'main' into fix_docker_default
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyun-wu authored Oct 11, 2023
2 parents 1c0c9b2 + d481aeb commit 39c24e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autogen/agentchat/conversable_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,8 @@ def generate_code_execution_reply(
# if no code blocks are found, continue
for i in range(min(len(messages), last_n_messages)):
message = messages[-(i + 1)]
if not message["content"]:
continue
code_blocks = extract_code(message["content"])
if len(code_blocks) == 1 and code_blocks[0][0] == UNKNOWN:
continue
Expand Down

0 comments on commit 39c24e2

Please sign in to comment.