Skip to content

Commit f47e53c

Browse files
[BFCL] Fix Language-specific Hint Implementation (#1241)
Fix #1216. This PR addresses the issue that the language-specific hint implementation incorrectly applies the Python hint to Java and JavaScript test entries. Co-authored-by: Shishir Patil <30296397+ShishirPatil@users.noreply.github.com>
1 parent 055c626 commit f47e53c

File tree

1 file changed

+2
-2
lines changed
  • berkeley-function-call-leaderboard/bfcl_eval

1 file changed

+2
-2
lines changed

berkeley-function-call-leaderboard/bfcl_eval/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,9 @@ def is_empty_output(decoded_output):
611611

612612

613613
def _get_language_specific_hint(test_category):
614-
if test_category == "java":
614+
if is_java(test_category):
615615
return " Note that the provided function is in Java 8 SDK syntax."
616-
elif test_category == "javascript":
616+
elif is_js(test_category):
617617
return " Note that the provided function is in JavaScript syntax."
618618
else:
619619
return " Note that the provided function is in Python 3 syntax."

0 commit comments

Comments
 (0)