π OpenHands: AI-Driven Development
fn_call_converter: Fix newline in in-context learning prompt (#5903)
Boxuan Li95f7a6a4dc4e
diff --git a/openhands/llm/fn_call_converter.py b/openhands/llm/fn_call_converter.pyindex ae4d87f8d6..16e761bae5 100644--- a/openhands/llm/fn_call_converter.py+++ b/openhands/llm/fn_call_converter.py@@ -224,7 +224,7 @@ IN_CONTEXT_LEARNING_EXAMPLE_SUFFIX = """--------------------- END OF NEW TASK DESCRIPTION ---------------------PLEASE follow the format strictly! PLEASE EMIT ONE AND ONLY ONE FUNCTION CALL PER MESSAGE.-""".lstrip()+"""# Regex patterns for function call parsingFN_REGEX_PATTERN = r'<function=([^>]+)>\n(.*?)</function>'