Skip to content

Commit

Permalink
Fix image retrieval test to use data -> payload format
Browse files Browse the repository at this point in the history
  • Loading branch information
djwhatle committed Nov 13, 2024
1 parent 7720ecd commit eff74c8
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions genai-perf/tests/test_image_retrieval_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,22 @@ def test_convert_multi_modal_batched(self) -> None:
result = image_retrieval_converter.convert(generic_dataset, config)

expected_result = {
"input": [{
"type": "image_url",
"url": "test_image_1"
},
{
"type": "image_url",
"url": "test_image_2"
}]
"data": [
{
"payload": [
{
"input": [{
"type": "image_url",
"url": "test_image_1"
},
{
"type": "image_url",
"url": "test_image_2"
}]
}
]
},
]
}

assert result == expected_result

0 comments on commit eff74c8

Please sign in to comment.