Fix bench_serving flush cache not recognizing OPENAI_API_KEY (#4181)
Signed-off-by: Mingshan <git@brighill.com>
This commit is contained in:
@@ -1006,7 +1006,7 @@ async def benchmark(
|
|||||||
|
|
||||||
# Flush cache
|
# Flush cache
|
||||||
if "sglang" in backend:
|
if "sglang" in backend:
|
||||||
requests.post(base_url + "/flush_cache")
|
requests.post(base_url + "/flush_cache", headers=get_auth_headers())
|
||||||
|
|
||||||
time.sleep(1.0)
|
time.sleep(1.0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user