We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4377c68 commit 8435e21Copy full SHA for 8435e21
src/content/docs/workers-ai/features/async-batch-api.mdx
@@ -202,7 +202,7 @@ export default {
202
const data = await request.json();
203
204
// Validate that we have a 'prompts' array in the payload
205
- if (!data.prompts || !Array.isArray(data.prompts)) {
+ if (!data.requests || !Array.isArray(data.requests)) {
206
return new Response(
207
JSON.stringify({
208
error: "Missing or invalid 'prompts' array in request payload.",
0 commit comments