fn_call_converter: Fix newline in in-context learning prompt (#5903)

This commit is contained in:
Boxuan Li
2024-12-29 13:20:05 -08:00
committed by GitHub
parent 7318c22928
commit 95f7a6a4dc

View File

@@ -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 parsing
FN_REGEX_PATTERN = r'<function=([^>]+)>\n(.*?)</function>'