[Frontend] Support tool calling and reasoning parser (#14511)
Signed-off-by: WangErXiao <863579016@qq.com>
This commit is contained in:
@@ -289,13 +289,6 @@ def validate_parsed_serve_args(args: argparse.Namespace):
|
||||
raise TypeError("Error: --enable-reasoning requires "
|
||||
"--reasoning-parser")
|
||||
|
||||
# Ref https://api-docs.deepseek.com/guides/reasoning_model
|
||||
# tool call and reasoning cannot be enabled at the same time.
|
||||
if args.enable_auto_tool_choice and args.enable_reasoning:
|
||||
raise TypeError(
|
||||
"Error: --enable-auto-tool-choice and "
|
||||
"--enable-reasoning cannot be enabled at the same time")
|
||||
|
||||
|
||||
def create_parser_for_docs() -> FlexibleArgumentParser:
|
||||
parser_for_docs = FlexibleArgumentParser(
|
||||
|
||||
Reference in New Issue
Block a user