Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【HOTFIX】Fix the typos in parser module #189

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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