UNPKG

@openrouter/ai-sdk-provider

Version:

The [OpenRouter](https://openrouter.ai/) provider for the [Vercel AI SDK](https://sdk.vercel.ai/docs) gives access to over 300 large language model on the OpenRouter chat and completion APIs.

80 lines 2.18 kB
{ "name": "@openrouter/ai-sdk-provider", "version": "0.7.2", "license": "Apache-2.0", "sideEffects": false, "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "files": [ "dist/**/*" ], "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": "1.1.3", "@ai-sdk/provider-utils": "2.2.8" }, "devDependencies": { "@biomejs/biome": "1.9.4", "@edge-runtime/vm": "5.0.0", "@ianvs/prettier-plugin-sort-imports": "4.4.2", "@types/jest": "29.5.14", "@types/node": "22.15.24", "ai": "4.3.16", "dotenv": "16.5.0", "prettier": "3.5.3", "tsup": "8.5.0", "typescript": "5.8.3", "vite-tsconfig-paths": "5.1.4", "vitest": "3.1.4", "zod": "3.25.34" }, "peerDependencies": { "zod": "^3.25.34", "ai": "^4.3.16" }, "engines": { "node": ">=18" }, "publishConfig": { "access": "public" }, "homepage": "https://github.com/OpenRouterTeam/ai-sdk-provider", "repository": { "type": "git", "url": "git+https://github.com/OpenRouterTeam/ai-sdk-provider.git" }, "bugs": { "url": "https://github.com/OpenRouterTeam/ai-sdk-provider/issues" }, "keywords": [ "ai" ], "scripts": { "build": "tsup", "clean": "rm -rf dist && rm -rf internal/dist", "dev": "tsup --watch", "lint": "pnpm biome lint", "typecheck": "tsc --noEmit", "stylecheck": "prettier --check \"**/*.{ts,mts,tsx,md,mdx,mjs}\"", "format": "prettier --write \"**/*.{ts,mts,tsx,md,mdx,mjs}\"", "prepublish": "pnpm run build", "test": "pnpm test:node && pnpm test:edge", "test:edge": "vitest --config vitest.edge.config.ts --run", "test:node": "vitest --config vitest.node.config.ts --run", "test:e2e": "vitest --config vitest.e2e.config.ts --run" } }