Skip to content

Commit

Permalink
fix the bug in parser
Browse files Browse the repository at this point in the history
  • Loading branch information
DavdGao committed Apr 30, 2024
1 parent 5236126 commit 4e375e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/agentscope/parsers/code_block_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class MarkdownCodeBlockParser(ParserBase):
tag_begin: str = "```{language_name}"
"""The beginning tag."""

content_hint: str = "${your_{language_name}_CODE}"
content_hint: str = "${{your_{language_name}_code}}"
"""The hint of the content."""

tag_end: str = "```"
Expand All @@ -22,7 +22,7 @@ class MarkdownCodeBlockParser(ParserBase):
format_instruction: str = (
"You should generate {language_name} code in a {language_name} fenced "
"code block as follows: \n```{language_name}\n"
"${your_{language_name}_CODE}\n```"
"${{your_{language_name}_code}}\n```"
)
"""The instruction for the format of the code block."""

Expand Down

0 comments on commit 4e375e3

Please sign in to comment.