mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-29 07:27:04 +08:00
[Benchmark] Fix regression in structured output benchmark (#25500)
Signed-off-by: Russell Bryant <rbryant@redhat.com> Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
parent
f98d4d38c0
commit
0cb913b0a2
@ -449,7 +449,8 @@ async def benchmark(
|
|||||||
def prepare_extra_body(request) -> dict:
|
def prepare_extra_body(request) -> dict:
|
||||||
extra_body = {}
|
extra_body = {}
|
||||||
# Add the schema to the extra_body
|
# Add the schema to the extra_body
|
||||||
extra_body[request.structure_type] = request.schema
|
extra_body["structured_outputs"] = {}
|
||||||
|
extra_body["structured_outputs"][request.structure_type] = request.schema
|
||||||
return extra_body
|
return extra_body
|
||||||
|
|
||||||
print("Starting initial single prompt test run...")
|
print("Starting initial single prompt test run...")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user