[Benchmark] Fix regression in structured output benchmark (#25500)

Signed-off-by: Russell Bryant <rbryant@redhat.com>
This commit is contained in:
Russell Bryant 2025-09-24 06:40:42 -04:00 committed by GitHub
parent 58c360d9be
commit 164299500b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -449,7 +449,8 @@ async def benchmark(
def prepare_extra_body(request) -> dict:
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
print("Starting initial single prompt test run...")