{"record":{"id":"15fb03773d215b5c","repo":"vercel/ai","slug":"anthropic-message-batches-do-not-support-speed-re","errorCode":null,"errorMessage":"Anthropic Message Batches do not support speed (request \"${requestId}\").","messagePattern":"Anthropic Message Batches do not support speed \\(request \"(.+?)\"\\)\\.","errorType":"exception","errorClass":"UnsupportedFunctionalityError","httpStatus":null,"severity":"error","filePath":"packages/anthropic/src/anthropic-messages-batch.ts","lineNumber":456,"sourceCode":"      throw new InvalidArgumentError({\n        argument: 'requests',\n        message: `Anthropic batch request IDs must be unique; duplicate ID \"${request.id}\".`,\n      });\n    }\n\n    ids.add(request.id);\n  }\n}\n\nfunction validateAnthropicBatchBody({\n  body,\n  requestId,\n}: {\n  body: Record<string, unknown>;\n  requestId: string;\n}) {\n  if (body.speed != null) {\n    throw new UnsupportedFunctionalityError({\n      functionality: 'providerOptions.anthropic.speed',\n      message:\n        `Anthropic Message Batches do not support speed ` +\n        `(request \"${requestId}\").`,\n    });\n  }\n\n  if (\n    Array.isArray(body.fallbacks) &&\n    body.fallbacks.some(\n      fallback =>\n        fallback != null &&\n        typeof fallback === 'object' &&\n        'speed' in fallback &&\n        fallback.speed != null,\n    )\n  ) {\n    throw new UnsupportedFunctionalityError({","sourceCodeStart":438,"sourceCodeEnd":474,"githubUrl":"https://github.com/vercel/ai/blob/69428b1f8b037e4d118fb4853428d5c4e620493c/packages/anthropic/src/anthropic-messages-batch.ts#L438-L474","documentation":"Error \"Anthropic Message Batches do not support speed (request \"${requestId}\").\" thrown in vercel/ai.","triggerScenarios":"Thrown at packages/anthropic/src/anthropic-messages-batch.ts:456 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"69428b1f8b037e4d118fb4853428d5c4e620493c","analyzedAt":"2026-08-30T12:32:21.016Z","schemaVersion":2},"datasetVersion":"2026-08-30T13:17:10.514Z"}