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

Function build_command

tests/ce/deploy/deploy.py:81–99  ·  view source on GitHub ↗

根据配置构建启动命令

(config)

Source from the content-addressed store, hash-verified

79
80
81def build_command(config):
82 """根据配置构建启动命令"""
83 # 基础命令
84 cmd = [
85 "python",
86 "-m",
87 "fastdeploy.entrypoints.openai.api_server",
88 ]
89
90 # 添加配置参数
91 for key, value in config.items():
92 if "--enable" in key or "--no-enable" in key:
93 value = bool(value if isinstance(value, bool) else eval(value))
94 if value:
95 cmd.append(key)
96 else:
97 cmd.extend([key, str(value)])
98
99 return cmd
100
101
102def merge_configs(base_config, override_config):

Callers 2

start_serviceFunction · 0.85
switch_serviceFunction · 0.85

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected