UNPKG

ai-sdk-ollama

Version:

Vercel AI SDK Provider for Ollama using official ollama-js library

120 lines 3.72 kB
{ "name": "ai-sdk-ollama", "version": "4.2.0", "type": "module", "description": "Vercel AI SDK Provider for Ollama using official ollama-js library", "main": "./dist/index.js", "exports": { ".": { "browser": { "types": "./dist/index.browser.d.ts", "import": "./dist/index.browser.js", "require": "./dist/index.browser.cjs" }, "node": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" }, "default": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } }, "./browser": { "types": "./dist/index.browser.d.ts", "import": "./dist/index.browser.js", "require": "./dist/index.browser.cjs" } }, "homepage": "https://github.com/jagreehal/ai-sdk-ollama", "bugs": { "url": "https://github.com/jagreehal/ai-sdk-ollama/issues" }, "author": "Jag Reehal<jag@jagreehal.com> (https://jagreehal.com)", "repository": { "type": "git", "url": "https://github.com/jagreehal/ai-sdk-ollama.git", "directory": "packages/ai-sdk-ollama" }, "license": "MIT", "publishConfig": { "access": "public", "provenance": true }, "files": [ "dist", "README.md", "CHANGELOG.md", "LICENSE" ], "keywords": [ "ai", "vercel-ai", "ollama", "ai-sdk", "llm", "language-model", "embedding", "chat", "local-ai", "provider", "typescript", "embeddings", "tool-calling" ], "dependencies": { "@ai-sdk/provider": "^4.0.7", "@ai-sdk/provider-utils": "^5.0.27", "jsonrepair": "^3.15.0", "ollama": "^0.6.3" }, "peerDependencies": { "ai": "^7.0.66" }, "devDependencies": { "@ai-sdk/test-server": "^2.0.1", "@arethetypeswrong/cli": "^0.18.5", "@edge-runtime/vm": "^5.0.0", "@total-typescript/ts-reset": "^0.6.1", "@total-typescript/tsconfig": "^1.0.4", "@types/eslint-config-prettier": "^6.11.3", "@types/node": "^26.2.0", "@typescript-eslint/eslint-plugin": "^8.67.0", "@typescript-eslint/parser": "^8.67.0", "concurrently": "^9.2.1", "eslint-config-prettier": "^10.1.8", "eslint-plugin-unicorn": "^73.0.0", "prettier": "^3.9.6", "rimraf": "^6.1.3", "tsup": "^8.5.1", "typescript": "npm:@typescript/typescript6@^6.0.2", "@typescript/native": "npm:typescript@^7.0.2", "typescript-eslint": "^8.67.0", "vitest": "^4.1.10", "zod": "^4.4.3" }, "engines": { "node": ">=22" }, "scripts": { "build": "tsup && tsc -p tsconfig.build.json && node scripts/fix-dts-imports.mjs", "ci": "npm run build && npm run check-format && npm run check-exports && npm run lint && npm run test", "dev": "concurrently --kill-others --names js,types \"tsup --watch\" \"tsc -p tsconfig.build.json --watch --preserveWatchOutput\"", "lint": "npx eslint src/**/*.ts", "lint:fix": "npx eslint src/**/*.ts --fix", "format": "prettier --write .", "format:check": "prettier --check src/**/*.ts", "type-check": "tsc --noEmit", "test": "vitest run --config vitest.unit.config.ts", "test:watch": "vitest --config vitest.unit.config.ts", "test:integration": "vitest run --config vitest.integration.config.ts", "test:integration:watch": "vitest --config vitest.integration.config.ts", "test:all": "pnpm test && pnpm test:integration", "check-format": "prettier --check ./src", "check-exports": "attw --pack . --ignore-rules false-esm no-resolution", "clean": "rimraf dist", "quality": "pnpm type-check && pnpm test && pnpm lint && pnpm format:check && pnpm check-exports" } }