mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-21 14:05:17 +02:00
modify code based on feedback of action_node.py and repair_llm_raw_output.py, add code in test_repair_llm_raw_output.py
This commit is contained in:
parent
2361c7e8aa
commit
11f70ca9b1
3 changed files with 28 additions and 12 deletions
|
|
@ -23,10 +23,7 @@ from metagpt.utils.common import OutputParser, general_after_log
|
|||
TAG = "CONTENT"
|
||||
|
||||
LANGUAGE_CONSTRAINT = "Language: Please use the same language as Human INPUT."
|
||||
FORMAT_CONSTRAINT = (f"Format: output wrapped inside [{TAG}][/{TAG}] like format example, nothing else. "
|
||||
f"Delete comments in json")
|
||||
# Delete comments in json
|
||||
# If you don't want JSONDecodeError to occur, you can add Delete comments in json after FORMAT_CONSTRAINT
|
||||
FORMAT_CONSTRAINT = f"Format: output wrapped inside [{TAG}][/{TAG}] like format example, nothing else."
|
||||
|
||||
|
||||
SIMPLE_TEMPLATE = """
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue