From 5678b510d70fee7c3b09fda43f48b3878a14b669 Mon Sep 17 00:00:00 2001 From: Thomas Kuntz Date: Sat, 10 May 2025 12:19:07 +0200 Subject: [PATCH] fix: Invalid escape sequence in prompts (#191) Fixes the warning: SyntaxWarning: invalid escape sequence '\`' --- mm_agents/prompts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mm_agents/prompts.py b/mm_agents/prompts.py index 2305aaa..e33d147 100644 --- a/mm_agents/prompts.py +++ b/mm_agents/prompts.py @@ -281,7 +281,7 @@ for example, format as: REMEMBER: For every step, you should only RETURN ME THE action_type AND parameters I ASKED FOR. NEVER EVER RETURN ME ANYTHING ELSE. -You MUST wrap the dict with backticks (\`). +You MUST wrap the dict with backticks (`). You MUST choose and ONLY CHOOSE from the action space above, otherwise your action will be considered as invalid and you will get a penalty. You CAN predict multiple actions at one step, but you should only return one action for each step. """.strip() @@ -526,7 +526,7 @@ for example, format as: REMEMBER: For every step, you should only RETURN ME THE action_type AND parameters I ASKED FOR. NEVER EVER RETURN ME ANYTHING ELSE. -You MUST wrap the dict with backticks (\`). +You MUST wrap the dict with backticks (`). You MUST choose and ONLY CHOOSE from the action space above, otherwise your action will be considered as invalid and you will get a penalty. You CAN predict multiple actions at one step, but you should only return one action for each step. Our past communication is great, and what you have done is very helpful. I will now give you another task to complete. @@ -794,7 +794,7 @@ for example, format as: REMEMBER: For every step, you should only RETURN ME THE action_type AND parameters I ASKED FOR. NEVER EVER RETURN ME ANYTHING ELSE. -You MUST wrap the dict with backticks (\`). +You MUST wrap the dict with backticks (`). You MUST choose and ONLY CHOOSE from the action space above, otherwise your action will be considered as invalid and you will get a penalty. You CAN predict multiple actions at one step, but you should only return one action for each step. """.strip() @@ -1062,7 +1062,7 @@ for example, format as: REMEMBER: For every step, you should only RETURN ME THE action_type AND parameters I ASKED FOR. NEVER EVER RETURN ME ANYTHING ELSE. -You MUST wrap the dict with backticks (\`). +You MUST wrap the dict with backticks (`). You MUST choose and ONLY CHOOSE from the action space above, otherwise your action will be considered as invalid and you will get a penalty. You CAN predict multiple actions at one step, but you should only return one action for each step. """.strip()