Skip to content

Commit 8e62803

Browse files
docs(pagination): improve naming
1 parent 3c70ae3 commit 8e62803

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,13 +364,13 @@ List methods in the Anthropic API are paginated.
364364
You can use the `for await … of` syntax to iterate through items across all pages:
365365

366366
```ts
367-
async function fetchAllBetaMessagesBatches(params) {
368-
const allBetaMessagesBatches = [];
367+
async function fetchAllBetaMessageBatches(params) {
368+
const allBetaMessageBatches = [];
369369
// Automatically fetches more pages as needed.
370370
for await (const betaMessageBatch of client.beta.messages.batches.list({ limit: 20 })) {
371-
allBetaMessagesBatches.push(betaMessageBatch);
371+
allBetaMessageBatches.push(betaMessageBatch);
372372
}
373-
return allBetaMessagesBatches;
373+
return allBetaMessageBatches;
374374
}
375375
```
376376

0 commit comments

Comments
 (0)