mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
bug fix
This commit is contained in:
parent
bcb297a46b
commit
40f81179a9
@ -132,7 +132,7 @@ class MultiplEEvaluator(CodeEvaluator):
|
|||||||
str: Processed code completion.
|
str: Processed code completion.
|
||||||
"""
|
"""
|
||||||
post_comp = self._extract_code(completion)
|
post_comp = self._extract_code(completion)
|
||||||
|
post_comp = self._remove_prefix(test_case['prompt'], post_comp)
|
||||||
post_comp = self._stop_at_stop_token(post_comp,
|
post_comp = self._stop_at_stop_token(post_comp,
|
||||||
test_case['stop_tokens'])
|
test_case['stop_tokens'])
|
||||||
post_comp = self._remove_prefix(test_case['prompt'], post_comp)
|
|
||||||
return post_comp
|
return post_comp
|
||||||
|
Loading…
Reference in New Issue
Block a user