[BugFix]Fix performance serving benchmark when enable profiling (#14737)

Signed-off-by: wangli <wangli858794774@gmail.com>
This commit is contained in:
Li Wang 2025-03-14 15:02:05 +08:00 committed by GitHub
parent 27b50f1fe6
commit 09269b3127
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -333,7 +333,7 @@ async def async_request_openai_chat_completions(
) -> RequestFuncOutput:
api_url = request_func_input.api_url
assert api_url.endswith(
"chat/completions"
("chat/completions", "profile")
), "OpenAI Chat Completions API URL must end with 'chat/completions'."
async with aiohttp.ClientSession(trust_env=True,