{"_id":"@brrock/ollama-ai-provider","name":"@brrock/ollama-ai-provider","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@brrock/ollama-ai-provider","version":"1.0.0","description":"Vercel AI Provider for running LLMs locally using Ollama","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","keywords":["ai","vercel-ai"],"author":{"name":"Sergio Gómez Bachiller","email":"decano@gmail.com"},"license":"Apache-2.0","dependencies":{"@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.3","partial-json":"0.1.7"},"devDependencies":{"@edge-runtime/vm":"^5.0.0","@types/node":"^24.3.0","tsdown":"^0.14.1","typescript":"5.9.2","zod":"4.0.17"},"peerDependencies":{"zod":"^4.0.0"},"peerDependenciesMeta":{"zod":{"optional":true}},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"homepage":"https://github.com/sgomez/@brrock/ollama-ai-provider","repository":{"type":"git","url":"git+https://github.com/sgomez/@brrock/ollama-ai-provider.git"},"bugs":{"url":"https://github.com/sgomez/@brrock/ollama-ai-provider/issues"},"scripts":{"build":"tsdown","clean":"rm -rf dist","dev":"tsdown --watch","lint":"eslint \"./**/*.ts*\"","type-check":"tsc --noEmit","prettier-check":"prettier --check \"./**/*.ts*\"","test":"pnpm test:node --run && pnpm test:edge --run","test:edge":"vitest --config vitest.edge.config.js","test:node":"vitest --config vitest.node.config.js"},"_id":"@brrock/ollama-ai-provider@1.0.0","_integrity":"sha512-v0fkQXCC8Gb97jVWyjsllPLhQjjECIJl0YA5krLoEuNKiXad9Iqajx18L6Qb6URZjoynD5O7vKGsbjqrIvVK8w==","_resolved":"/tmp/fafed2e3aca42979f20ac0c0ffd48aff/brrock-ollama-ai-provider-1.0.0.tgz","_from":"file:brrock-ollama-ai-provider-1.0.0.tgz","_nodeVersion":"24.1.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-v0fkQXCC8Gb97jVWyjsllPLhQjjECIJl0YA5krLoEuNKiXad9Iqajx18L6Qb6URZjoynD5O7vKGsbjqrIvVK8w==","shasum":"908ce54abb8d8fc3345421ce6a11009fea9d0967","tarball":"https://registry.npmjs.org/@brrock/ollama-ai-provider/-/ollama-ai-provider-1.0.0.tgz","fileCount":11,"unpackedSize":162035,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGfg8v5ZDdbP0B2FSTOojtKY00AbeGyYI8bpOThm0286AiEAm+6Gi2biPP+Ytbo2Ao0k5upbR2JLYznoZQ1C2oM9e8g="}]},"_npmUser":{"name":"brrock","email":"brduck@duck.com"},"directories":{},"maintainers":[{"name":"brrock","email":"brduck@duck.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ollama-ai-provider_1.0.0_1755419380512_0.5596311714963838"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-17T08:29:40.422Z","1.0.0":"2025-08-17T08:29:40.722Z","modified":"2025-08-17T08:29:41.027Z"},"maintainers":[{"name":"brrock","email":"brduck@duck.com"}],"description":"Vercel AI Provider for running LLMs locally using Ollama","homepage":"https://github.com/sgomez/@brrock/ollama-ai-provider","keywords":["ai","vercel-ai"],"repository":{"type":"git","url":"git+https://github.com/sgomez/@brrock/ollama-ai-provider.git"},"author":{"name":"Sergio Gómez Bachiller","email":"decano@gmail.com"},"bugs":{"url":"https://github.com/sgomez/@brrock/ollama-ai-provider/issues"},"license":"Apache-2.0","readme":"# Ollama Provider for the Vercel AI SDK\n\nThe **[Ollama Provider](https://github.com/sgomez/@brrock/ollama-ai-provider)** for the [Vercel AI SDK](https://sdk.vercel.ai/docs)\ncontains language model support for the Ollama APIs and embedding model support for the Ollama embeddings API.\n\n## Requirements\n\nThis provider requires Ollama >= 0.5.0\n\n## Setup\n\nThe Ollama provider is available in the `@brrock/ollama-ai-provider` module. You can install it with\n\n```bash\nnpm i @brrock/ollama-ai-provider\n```\n\n## Provider Instance\n\nYou can import the default provider instance `ollama` from `@brrock/ollama-ai-provider`:\n\n```ts\nimport { ollama } from '@brrock/ollama-ai-provider';\n```\n\n## Example\n\n```ts\nimport { ollama } from '@brrock/ollama-ai-provider';\nimport { generateText } from 'ai';\n\nconst { text } = await generateText({\n  model: ollama('phi3'),\n  prompt: 'Write a vegetarian lasagna recipe for 4 people.',\n});\n```\n\n## Documentation\n\nPlease check out the **[Ollama provider documentation](https://github.com/sgomez/@brrock/ollama-ai-provider)** for more information.\n","readmeFilename":"README.md","_rev":"1-01bb3c2eb7f0e11f6235ec586371403b"}