mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-30 14:35:17 +02:00
keep len of web view content
This commit is contained in:
parent
9a7b4df203
commit
5f1bb59f1e
2 changed files with 5 additions and 3 deletions
|
|
@ -193,6 +193,8 @@ class ExecuteNbCode(Action):
|
|||
# the useful information of normal output is at the begining.
|
||||
if '<!DOCTYPE html>' not in output_text:
|
||||
output_text = output_text[:keep_len] if is_success else output_text[-keep_len:]
|
||||
else:
|
||||
output_text = output_text[:20000] if is_success else output_text[-keep_len:]
|
||||
|
||||
parsed_output.append(output_text)
|
||||
return is_success, ",".join(parsed_output)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue