Skip to content
Open
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 moatless/completion/react.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ def _prepare_system_prompt(self, system_prompt: str, response_schema: List[Type[
system_prompt += dedent(f"""\n# Response format

Use the following format:
{'' if not self.disable_thoughts else '''
{'' if self.disable_thoughts else '''
Thought: You should always think about what to do'''}
Action: The action to take followed by the input arguments based on the schema below

Use one of the following actions and provide input arguments matching the schema.

{input_schemas}

Important: Do not include multiple{' Thought-' if self.disable_thoughts else ''} Action blocks. Do not include code blocks or additional text outside of this format.
Important: Do not include multiple{'' if self.disable_thoughts else ' Thought-'} Action blocks. Do not include code blocks or additional text outside of this format.
""")
return system_prompt

Expand Down