Skip to content

Commit 8435e21

Browse files
Update src/content/docs/workers-ai/features/async-batch-api.mdx
Co-authored-by: Kevin Jain <[email protected]>
1 parent 4377c68 commit 8435e21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/workers-ai/features/async-batch-api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export default {
202202
const data = await request.json();
203203

204204
// Validate that we have a 'prompts' array in the payload
205-
if (!data.prompts || !Array.isArray(data.prompts)) {
205+
if (!data.requests || !Array.isArray(data.requests)) {
206206
return new Response(
207207
JSON.stringify({
208208
error: "Missing or invalid 'prompts' array in request payload.",

0 commit comments

Comments
 (0)