Skip to content

Commit a143beb

Browse files
dandvRobertCraigie
authored andcommitted
docs(readme): minor typo fixes (#577)
Co-authored-by: Robert Craigie <[email protected]>
1 parent 007ff79 commit a143beb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ This SDK provides beta support for the [Message Batches API](https://docs.anthro
138138

139139
### Creating a batch
140140

141-
Message Batches take the exact same request params as the standard Messages API:
141+
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:
142142

143143
```ts
144144
await anthropic.beta.messages.batches.create({
@@ -272,7 +272,7 @@ Note that requests which time out will be [retried twice by default](#retries).
272272
## Auto-pagination
273273

274274
List methods in the Anthropic API are paginated.
275-
You can use `for await … of` syntax to iterate through items across all pages:
275+
You can use the `for await … of` syntax to iterate through items across all pages:
276276

277277
```ts
278278
async function fetchAllBetaMessagesBatches(params) {
@@ -285,7 +285,7 @@ async function fetchAllBetaMessagesBatches(params) {
285285
}
286286
```
287287

288-
Alternatively, you can make request a single page at a time:
288+
Alternatively, you can request a single page at a time:
289289

290290
```ts
291291
let page = await client.beta.messages.batches.list({ limit: 20 });

0 commit comments

Comments
 (0)