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

Method add_cli_args

fastdeploy/entrypoints/cli/openai.py:203–213  ·  view source on GitHub ↗

Add CLI arguments for the complete command.

(parser: FlexibleArgumentParser)

Source from the content-addressed store, hash-verified

201
202 @staticmethod
203 def add_cli_args(parser: FlexibleArgumentParser) -> FlexibleArgumentParser:
204 """Add CLI arguments for the complete command."""
205 _add_query_options(parser)
206 parser.add_argument(
207 "-q",
208 "--quick",
209 type=str,
210 metavar="PROMPT",
211 help="Send a single prompt and print the completion output, then exit.",
212 )
213 return parser
214
215 def subparser_init(self, subparsers: argparse._SubParsersAction) -> FlexibleArgumentParser:
216 parser = subparsers.add_parser(

Callers

nothing calls this directly

Calls 1

_add_query_optionsFunction · 0.85

Tested by

no test coverage detected