diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7d94b319..c04028d2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 diff --git a/README.md b/README.md index 520e7f8a..19fa962a 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/helpers.md b/helpers.md index 9b169457..4ec6199e 100644 --- a/helpers.md +++ b/helpers.md @@ -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({ @@ -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', @@ -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', diff --git a/packages/bedrock-sdk/README.md b/packages/bedrock-sdk/README.md index c5dcd9db..d9f25d4c 100644 --- a/packages/bedrock-sdk/README.md +++ b/packages/bedrock-sdk/README.md @@ -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