Skip to content

Commit dc1e3e4

Browse files
committed
Update batch request with content to reflect using dictionaries instead of lists
1 parent 12f22bb commit dc1e3e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

samples/batch_requests/batch_request_with_content.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@
4747
batch_request_item2 = BatchRequestItem(request_information=request_info2)
4848

4949
# Create a batch request content
50-
batch_request_content = [batch_request_item1, batch_request_item2]
50+
batch_request_content = {
51+
batch_request_item1.id: batch_request_item1,
52+
batch_request_item2.id: batch_request_item2
53+
}
5154
batch_content = BatchRequestContent(batch_request_content)
5255

5356

0 commit comments

Comments
 (0)