Skip to content

Commit

Permalink
docs(readme): minor typo fixes (#577)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Craigie <[email protected]>
  • Loading branch information
2 people authored and stainless-app[bot] committed Nov 1, 2024
1 parent 007ff79 commit a143beb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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) {
Expand All @@ -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 });
Expand Down

0 comments on commit a143beb

Please sign in to comment.