UNPKG

@ai-sdk/anthropic

Version:

The **[Anthropic provider](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [Anthropic Messages API](https://docs.anthropic.com/claude/reference/messages_post).

72 lines 1.9 kB
{ "name": "@ai-sdk/anthropic", "version": "2.0.2", "license": "Apache-2.0", "sideEffects": false, "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "files": [ "dist/**/*", "CHANGELOG.md", "internal.d.ts" ], "exports": { "./package.json": "./package.json", ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" }, "./internal": { "types": "./dist/internal/index.d.ts", "import": "./dist/internal/index.mjs", "module": "./dist/internal/index.mjs", "require": "./dist/internal/index.js" } }, "dependencies": { "@ai-sdk/provider": "2.0.0", "@ai-sdk/provider-utils": "3.0.2" }, "devDependencies": { "@types/node": "20.17.24", "tsup": "^8", "typescript": "5.8.3", "zod": "3.25.76", "@vercel/ai-tsconfig": "0.0.0" }, "peerDependencies": { "zod": "^3.25.76 || ^4" }, "engines": { "node": ">=18" }, "publishConfig": { "access": "public" }, "homepage": "https://ai-sdk.dev/docs", "repository": { "type": "git", "url": "git+https://github.com/vercel/ai.git" }, "bugs": { "url": "https://github.com/vercel/ai/issues" }, "keywords": [ "ai" ], "scripts": { "build": "pnpm clean && tsup --tsconfig tsconfig.build.json", "build:watch": "pnpm clean && tsup --watch --tsconfig tsconfig.build.json", "clean": "rm -rf dist *.tsbuildinfo", "lint": "eslint \"./**/*.ts*\"", "type-check": "tsc --build", "prettier-check": "prettier --check \"./**/*.ts*\"", "test": "pnpm test:node && pnpm test:edge", "test:update": "pnpm test:node -u", "test:watch": "vitest --config vitest.node.config.js", "test:edge": "vitest --config vitest.edge.config.js --run", "test:node": "vitest --config vitest.node.config.js --run" } }