Skip to content

Commit fc02486

Browse files
jamestwhedbeeLeiWang1999
authored andcommitted
[Frontend] Relax api url assertion for openai benchmarking (vllm-project#6046)
Signed-off-by: LeiWang1999 <leiwang1999@outlook.com>
1 parent 93ca513 commit fc02486

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

benchmarks/backend_request_func.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ async def async_request_openai_completions(
225225
) -> RequestFuncOutput:
226226
api_url = request_func_input.api_url
227227
assert api_url.endswith(
228-
"v1/completions"
229-
), "OpenAI Completions API URL must end with 'v1/completions'."
228+
"completions"
229+
), "OpenAI Completions API URL must end with 'completions'."
230230

231231
async with aiohttp.ClientSession(timeout=AIOHTTP_TIMEOUT) as session:
232232
assert not request_func_input.use_beam_search
@@ -304,8 +304,8 @@ async def async_request_openai_chat_completions(
304304
) -> RequestFuncOutput:
305305
api_url = request_func_input.api_url
306306
assert api_url.endswith(
307-
"v1/chat/completions"
308-
), "OpenAI Chat Completions API URL must end with 'v1/chat/completions'."
307+
"chat/completions"
308+
), "OpenAI Chat Completions API URL must end with 'chat/completions'."
309309

310310
async with aiohttp.ClientSession(timeout=AIOHTTP_TIMEOUT) as session:
311311
assert not request_func_input.use_beam_search

0 commit comments

Comments
 (0)