mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-30 11:26:23 +02:00
add strip for result.
This commit is contained in:
parent
3f2b512d29
commit
0c8a844f5a
1 changed files with 4 additions and 1 deletions
|
|
@ -123,7 +123,10 @@ class ExecutePyCode(ExecuteCode, Action):
|
|||
return parsed_output
|
||||
|
||||
for i, output in enumerate(outputs):
|
||||
if output["output_type"] == "stream":
|
||||
if output["output_type"] == "stream" and not any(
|
||||
tag in output["text"]
|
||||
for tag in ["| INFO | metagpt", "| ERROR | metagpt", "| WARNING | metagpt"]
|
||||
):
|
||||
parsed_output += output["text"]
|
||||
elif output["output_type"] == "display_data":
|
||||
if "image/png" in output["data"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue