Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ $ yarn link @anthropic-ai/sdk
# With pnpm
$ pnpm link --global
$ cd ../my-package
$ pnpm link -global @anthropic-ai/sdk
$ pnpm link --global @anthropic-ai/sdk
```

## Running tests
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ const calculated = (60 * 60 * maxTokens) / 128_000;
return calculated < minimum ? minimum * 1000 : calculated * 1000;
```

which will result in a timeout up to 60 minutes, scaled by the `max_tokens` parameter, unless overriden at the request or client level.
which will result in a timeout up to 60 minutes, scaled by the `max_tokens` parameter, unless overridden at the request or client level.

You can configure this with a `timeout` option:

Expand Down
6 changes: 3 additions & 3 deletions helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ The SDK provides helper functions to create runnable tools that can be automatic
### Usage

```ts
import { betaZodTool } from '@anthropic-ai/sdk/helpers/zod';
import { betaZodTool } from '@anthropic-ai/sdk/helpers/beta/zod';
import { z } from 'zod';

const weatherTool = betaZodTool({
Expand Down Expand Up @@ -185,7 +185,7 @@ in-depth example.
Zod schemas can be used to define the input schema for your tools:

```ts
import { betaZodTool } from '@anthropic-ai/sdk/helpers/zod';
import { betaZodTool } from '@anthropic-ai/sdk/helpers/beta/zod';

const weatherTool = betaZodTool({
name: 'get_weather',
Expand All @@ -206,7 +206,7 @@ You can use JSON Schema to define the input schema for your tools. `betaTool` wi
based on the supplied JSON Schema.

```ts
import { betaTool } from '@anthropic-ai/sdk/helpers/json-schema';
import { betaTool } from '@anthropic-ai/sdk/helpers/beta/json-schema';

const calculatorTool = betaTool({
name: 'calculator',
Expand Down
2 changes: 1 addition & 1 deletion packages/bedrock-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ npm install @anthropic-ai/bedrock-sdk
import { AnthropicBedrock } from '@anthropic-ai/bedrock-sdk';

// Note: this assumes you have configured AWS credentials in a way
// that the AWS Node SDK will recognise, typicaly a shared `~/.aws/credentials`
// that the AWS Node SDK will recognise, typically a shared `~/.aws/credentials`
// file or `AWS_ACCESS_KEY_ID` & `AWS_SECRET_ACCESS_KEY` environment variables.
//
// https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html
Expand Down