From a143beb2b4f6204b573511bae88d1ecae4526593 Mon Sep 17 00:00:00 2001 From: Dan Dascalescu Date: Mon, 28 Oct 2024 19:32:50 +0200 Subject: [PATCH] docs(readme): minor typo fixes (#577) Co-authored-by: Robert Craigie --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b11349af..daba6e63 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ This SDK provides beta support for the [Message Batches API](https://docs.anthro ### Creating a batch -Message Batches take the exact same request params as the standard Messages API: +Message Batches takes an array of requests, where each object has a `custom_id` identifier, and the exact same request `params` as the standard Messages API: ```ts await anthropic.beta.messages.batches.create({ @@ -272,7 +272,7 @@ Note that requests which time out will be [retried twice by default](#retries). ## Auto-pagination List methods in the Anthropic API are paginated. -You can use `for await … of` syntax to iterate through items across all pages: +You can use the `for await … of` syntax to iterate through items across all pages: ```ts async function fetchAllBetaMessagesBatches(params) { @@ -285,7 +285,7 @@ async function fetchAllBetaMessagesBatches(params) { } ``` -Alternatively, you can make request a single page at a time: +Alternatively, you can request a single page at a time: ```ts let page = await client.beta.messages.batches.list({ limit: 20 });