@@ -79,29 +79,29 @@ def make_arg_parser(parser: FlexibleArgumentParser) -> FlexibleArgumentParser:
79
79
parser .add_argument ("--host" ,
80
80
type = nullable_str ,
81
81
default = None ,
82
- help = "host name" )
83
- parser .add_argument ("--port" , type = int , default = 8000 , help = "port number" )
82
+ help = "Host name. " )
83
+ parser .add_argument ("--port" , type = int , default = 8000 , help = "Port number. " )
84
84
parser .add_argument (
85
85
"--uvicorn-log-level" ,
86
86
type = str ,
87
87
default = "info" ,
88
88
choices = ['debug' , 'info' , 'warning' , 'error' , 'critical' , 'trace' ],
89
- help = "log level for uvicorn" )
89
+ help = "Log level for uvicorn. " )
90
90
parser .add_argument ("--allow-credentials" ,
91
91
action = "store_true" ,
92
- help = "allow credentials" )
92
+ help = "Allow credentials. " )
93
93
parser .add_argument ("--allowed-origins" ,
94
94
type = json .loads ,
95
95
default = ["*" ],
96
- help = "allowed origins" )
96
+ help = "Allowed origins. " )
97
97
parser .add_argument ("--allowed-methods" ,
98
98
type = json .loads ,
99
99
default = ["*" ],
100
- help = "allowed methods" )
100
+ help = "Allowed methods. " )
101
101
parser .add_argument ("--allowed-headers" ,
102
102
type = json .loads ,
103
103
default = ["*" ],
104
- help = "allowed headers" )
104
+ help = "Allowed headers. " )
105
105
parser .add_argument ("--api-key" ,
106
106
type = nullable_str ,
107
107
default = None ,
@@ -115,10 +115,10 @@ def make_arg_parser(parser: FlexibleArgumentParser) -> FlexibleArgumentParser:
115
115
action = LoRAParserAction ,
116
116
help = "LoRA module configurations in either 'name=path' format"
117
117
"or JSON format. "
118
- "Example (old format): 'name=path' "
118
+ "Example (old format): `` 'name=path'`` "
119
119
"Example (new format): "
120
- "' {\" name\" : \" name\" , \" local_path\" : \" path\" , "
121
- "\" base_model_name\" : \" id\" }' " )
120
+ "`` {\" name\" : \" name\" , \" local_path\" : \" path\" , "
121
+ "\" base_model_name\" : \" id\" }`` " )
122
122
parser .add_argument (
123
123
"--prompt-adapters" ,
124
124
type = nullable_str ,
@@ -132,7 +132,7 @@ def make_arg_parser(parser: FlexibleArgumentParser) -> FlexibleArgumentParser:
132
132
default = None ,
133
133
help = "The file path to the chat template, "
134
134
"or the template in single-line form "
135
- "for the specified model" )
135
+ "for the specified model. " )
136
136
parser .add_argument (
137
137
'--chat-template-content-format' ,
138
138
type = str ,
@@ -141,38 +141,39 @@ def make_arg_parser(parser: FlexibleArgumentParser) -> FlexibleArgumentParser:
141
141
help = 'The format to render message content within a chat template.'
142
142
'\n \n '
143
143
'* "string" will render the content as a string. '
144
- 'Example: "Hello World"\n '
144
+ 'Example: `` "Hello World"`` \n '
145
145
'* "openai" will render the content as a list of dictionaries, '
146
146
'similar to OpenAI schema. '
147
- 'Example: [{"type": "text", "text": "Hello world!"}]' )
147
+ 'Example: `` [{"type": "text", "text": "Hello world!"}]`` ' )
148
148
parser .add_argument ("--response-role" ,
149
149
type = nullable_str ,
150
150
default = "assistant" ,
151
151
help = "The role name to return if "
152
- "`request.add_generation_prompt=true`." )
152
+ "`` request.add_generation_prompt=true` `." )
153
153
parser .add_argument ("--ssl-keyfile" ,
154
154
type = nullable_str ,
155
155
default = None ,
156
- help = "The file path to the SSL key file" )
156
+ help = "The file path to the SSL key file. " )
157
157
parser .add_argument ("--ssl-certfile" ,
158
158
type = nullable_str ,
159
159
default = None ,
160
- help = "The file path to the SSL cert file" )
160
+ help = "The file path to the SSL cert file. " )
161
161
parser .add_argument ("--ssl-ca-certs" ,
162
162
type = nullable_str ,
163
163
default = None ,
164
- help = "The CA certificates file" )
164
+ help = "The CA certificates file. " )
165
165
parser .add_argument (
166
166
"--ssl-cert-reqs" ,
167
167
type = int ,
168
168
default = int (ssl .CERT_NONE ),
169
- help = "Whether client certificate is required (see stdlib ssl module's)"
169
+ help = "Whether client certificate is required (see stdlib ssl module's). "
170
170
)
171
171
parser .add_argument (
172
172
"--root-path" ,
173
173
type = nullable_str ,
174
174
default = None ,
175
- help = "FastAPI root_path when app is behind a path based routing proxy" )
175
+ help = "FastAPI root_path when app is behind a path based routing proxy."
176
+ )
176
177
parser .add_argument (
177
178
"--middleware" ,
178
179
type = nullable_str ,
@@ -182,15 +183,15 @@ def make_arg_parser(parser: FlexibleArgumentParser) -> FlexibleArgumentParser:
182
183
"We accept multiple --middleware arguments. "
183
184
"The value should be an import path. "
184
185
"If a function is provided, vLLM will add it to the server "
185
- "using @app.middleware('http'). "
186
+ "using `` @app.middleware('http')`` . "
186
187
"If a class is provided, vLLM will add it to the server "
187
- "using app.add_middleware(). " )
188
+ "using `` app.add_middleware()`` . " )
188
189
parser .add_argument (
189
190
"--return-tokens-as-token-ids" ,
190
191
action = "store_true" ,
191
- help = "When --max-logprobs is specified, represents single tokens as "
192
- "strings of the form 'token_id:{token_id}' so that tokens that "
193
- "are not JSON-encodable can be identified." )
192
+ help = "When `` --max-logprobs`` is specified, represents single tokens "
193
+ " as strings of the form 'token_id:{token_id}' so that tokens "
194
+ "that are not JSON-encodable can be identified." )
194
195
parser .add_argument (
195
196
"--disable-frontend-multiprocessing" ,
196
197
action = "store_true" ,
@@ -205,9 +206,8 @@ def make_arg_parser(parser: FlexibleArgumentParser) -> FlexibleArgumentParser:
205
206
"--enable-auto-tool-choice" ,
206
207
action = "store_true" ,
207
208
default = False ,
208
- help =
209
- "Enable auto tool choice for supported models. Use --tool-call-parser"
210
- " to specify which parser to use" )
209
+ help = "Enable auto tool choice for supported models. Use "
210
+ "``--tool-call-parser`` to specify which parser to use." )
211
211
212
212
valid_tool_parsers = ToolParserManager .tool_parsers .keys ()
213
213
parser .add_argument (
@@ -219,7 +219,7 @@ def make_arg_parser(parser: FlexibleArgumentParser) -> FlexibleArgumentParser:
219
219
help =
220
220
"Select the tool call parser depending on the model that you're using."
221
221
" This is used to parse the model-generated tool call into OpenAI API "
222
- "format. Required for --enable-auto-tool-choice." )
222
+ "format. Required for `` --enable-auto-tool-choice`` ." )
223
223
224
224
parser .add_argument (
225
225
"--tool-parser-plugin" ,
@@ -228,7 +228,7 @@ def make_arg_parser(parser: FlexibleArgumentParser) -> FlexibleArgumentParser:
228
228
help =
229
229
"Special the tool parser plugin write to parse the model-generated tool"
230
230
" into OpenAI API format, the name register in this plugin can be used "
231
- "in --tool-call-parser." )
231
+ "in `` --tool-call-parser`` ." )
232
232
233
233
parser = AsyncEngineArgs .add_cli_args (parser )
234
234
@@ -243,7 +243,7 @@ def make_arg_parser(parser: FlexibleArgumentParser) -> FlexibleArgumentParser:
243
243
"--disable-fastapi-docs" ,
244
244
action = 'store_true' ,
245
245
default = False ,
246
- help = "Disable FastAPI's OpenAPI schema, Swagger UI, and ReDoc endpoint"
246
+ help = "Disable FastAPI's OpenAPI schema, Swagger UI, and ReDoc endpoint. "
247
247
)
248
248
parser .add_argument (
249
249
"--enable-prompt-tokens-details" ,
0 commit comments