Skip to content

Commit 1023a67

Browse files
luukunnyuanlehomeJiang-Jia-Jun
authored
[BugFix] fix default parser (#3932)
* add reasoning parser plugin * fix finish reason * fix default parser --------- Co-authored-by: Yuanle Liu <[email protected]> Co-authored-by: Jiang-Jia-Jun <[email protected]>
1 parent d435499 commit 1023a67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fastdeploy/input/preprocess.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ def create_processor(self):
7676
load_reasoning_parser_plugins,
7777
)
7878

79-
reasoning_parser_obj = load_reasoning_parser_plugins()
79+
custom_reasoning_parser = load_reasoning_parser_plugins()
80+
if self.reasoning_parser == "custom_reasoning_parser":
81+
reasoning_parser_obj = custom_reasoning_parser
8082
except:
8183
if self.reasoning_parser:
8284
reasoning_parser_obj = ReasoningParserManager.get_reasoning_parser(self.reasoning_parser)

0 commit comments

Comments
 (0)