Skip to content

Commit

Permalink
fn_call_converter: Fix newline in in-context learning prompt (#5903)
Browse files Browse the repository at this point in the history
  • Loading branch information
li-boxuan authored Dec 29, 2024
1 parent 7318c22 commit 95f7a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openhands/llm/fn_call_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def index():
--------------------- 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 parsing
FN_REGEX_PATTERN = r'<function=([^>]+)>\n(.*?)</function>'
Expand Down

0 comments on commit 95f7a6a

Please sign in to comment.