Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(readme): minor typo fixes #577

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 ahs a `custom_id` identifier, and the exact same request `params` as the standard Messages API:
dandv marked this conversation as resolved.
Show resolved Hide resolved

```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