MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / subparser_init

Method subparser_init

fastdeploy/entrypoints/cli/openai.py:168–175  ·  view source on GitHub ↗
(self, subparsers: argparse._SubParsersAction)

Source from the content-addressed store, hash-verified

166 return parser
167
168 def subparser_init(self, subparsers: argparse._SubParsersAction) -> FlexibleArgumentParser:
169 parser = subparsers.add_parser(
170 "chat",
171 help="Generate chat completions via the running API server.",
172 description="Generate chat completions via the running API server.",
173 usage="fastdeploy chat [options]",
174 )
175 return ChatCommand.add_cli_args(parser)
176
177
178class CompleteCommand(CLISubcommand):

Callers 1

mainFunction · 0.45

Calls 1

add_cli_argsMethod · 0.45

Tested by

no test coverage detected