{"_id":"@cencori/ai-provider","_rev":"3-a66a3b000858e50166137f292bd4c0e8","name":"@cencori/ai-provider","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"@cencori/ai-provider","version":"0.1.0","keywords":["ai","cencori","vercel","ai-sdk","provider","streaming","llm","openai","anthropic","gemini"],"author":{"name":"FohnAI"},"license":"MIT","_id":"@cencori/ai-provider@0.1.0","maintainers":[{"name":"bolaabanjo","email":"bolaabanjo@gmail.com"}],"homepage":"https://cencori.com","bugs":{"url":"https://github.com/cencori/cencori/issues"},"dist":{"shasum":"373eaed948681ac0af14177e7c3314aa9d2ce92a","tarball":"https://registry.npmjs.org/@cencori/ai-provider/-/ai-provider-0.1.0.tgz","fileCount":8,"integrity":"sha512-tkArEMwyGhGp/FT+xJGuNsQQw0Km4jbxnyLG8TXPoMznaxuxiut7sDxNSzlp7eDa01rcLUuYZKkVdRcN6rPuuw==","signatures":[{"sig":"MEUCIAwC64/KuZ9g/MwMqg1k8+xBGQ+juCTB6aCe0Nr4uTswAiEAjA++rhLjziSpRYXNSSW9w78v/qcDMCJEJrM5tMf3Kn4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":65297},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"26e9a452c228a51d0ed8588c5fd38deb2417df60","scripts":{"dev":"tsup --watch","build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"bolaabanjo","email":"bolaabanjo@gmail.com"},"repository":{"url":"git+https://github.com/cencori/cencori.git","type":"git"},"_npmVersion":"11.6.2","description":"Cencori provider for Vercel AI SDK - use Cencori with streamText, generateText, and useChat","directories":{},"_nodeVersion":"25.2.1","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.3.0","@ai-sdk/provider":"^1.0.0","@ai-sdk/provider-utils":"^2.0.0"},"peerDependencies":{"@ai-sdk/provider":">=0.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-provider_0.1.0_1767297188927_0.47705094306035445","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@cencori/ai-provider","version":"0.2.0","keywords":["ai","cencori","vercel","ai-sdk","provider","streaming","llm","openai","anthropic","gemini"],"author":{"name":"FohnAI"},"license":"MIT","_id":"@cencori/ai-provider@0.2.0","maintainers":[{"name":"bolaabanjo","email":"bolaabanjo@gmail.com"}],"homepage":"https://cencori.com","bugs":{"url":"https://github.com/cencori/cencori/issues"},"dist":{"shasum":"98ef89cfe28afcb21c429f854108a56e0a92b9bc","tarball":"https://registry.npmjs.org/@cencori/ai-provider/-/ai-provider-0.2.0.tgz","fileCount":8,"integrity":"sha512-e6Lp6jxKesVCUad4LDQ1fYsgUrnzUCUOOrak0Akm47yDNxm0EZxr7cGFCue2GyA2ctz1CtPZQyTRpucm2h/YUQ==","signatures":[{"sig":"MEYCIQCFbyvojefYB9n0W34poIBXPf6WQQfg3J6CqDe8dlIDkwIhANElHWBaUesP6BXDcmNrvXRAzWRxtGJ1n5jPQI8cjeDw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69377},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","$schema":"https://json.schemastore.org/package.json","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"b19b240ddb0e01885c421628e524cf6af6c2e859","scripts":{"dev":"tsup --watch","build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"bolaabanjo","email":"bolaabanjo@gmail.com"},"repository":{"url":"git+https://github.com/cencori/cencori.git","type":"git"},"_npmVersion":"11.6.2","description":"Cencori provider for Vercel AI SDK - use Cencori with streamText, generateText, and useChat","directories":{},"_nodeVersion":"25.2.1","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.3.0","@ai-sdk/provider":"^3.0.0","@ai-sdk/provider-utils":"^3.0.0"},"peerDependencies":{"@ai-sdk/provider":">=1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-provider_0.2.0_1767313660719_0.2504720868752168","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"$schema":"https://json.schemastore.org/package.json","name":"@cencori/ai-provider","version":"0.2.1","description":"Cencori provider for Vercel AI SDK - use Cencori with streamText, generateText, and useChat","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"keywords":["ai","cencori","vercel","ai-sdk","provider","streaming","llm","openai","anthropic","gemini"],"author":{"name":"FohnAI"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cencori/cencori.git"},"homepage":"https://cencori.com","bugs":{"url":"https://github.com/cencori/cencori/issues"},"scripts":{"build":"tsup","dev":"tsup --watch","prepublishOnly":"npm run build"},"peerDependencies":{"@ai-sdk/provider":">=1.0.0"},"devDependencies":{"@ai-sdk/provider":"^3.0.0","@ai-sdk/provider-utils":"^3.0.0","tsup":"^8.0.0","typescript":"^5.3.0"},"gitHead":"082b585c81a941d4ea7d3ac785b0f362313aca0f","_id":"@cencori/ai-provider@0.2.1","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-nZISwbcJngwm2GKYu83MHnO+f5LQWRoTbjPvkCHKcSDjTF85OWw+lE+xTIMQQW80F8pEYUAeGrU88kpT+7mxeQ==","shasum":"0d998206271b4e053faa6512406a9528d983d9d5","tarball":"https://registry.npmjs.org/@cencori/ai-provider/-/ai-provider-0.2.1.tgz","fileCount":8,"unpackedSize":69455,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIC6QQs6kNjf1V4CbwFh8FVmzBvNb/hTNNXtyXaow17zhAiBVSD29G7ORcDlMDTu7XXQYH3BasnPnCUvEcBfQOJwORg=="}]},"_npmUser":{"name":"bolaabanjo","email":"bolaabanjo@gmail.com"},"directories":{},"maintainers":[{"name":"bolaabanjo","email":"bolaabanjo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ai-provider_0.2.1_1767315695204_0.12717813711393133"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-01T19:53:08.845Z","modified":"2026-01-02T01:01:35.587Z","0.1.0":"2026-01-01T19:53:09.076Z","0.2.0":"2026-01-02T00:27:40.890Z","0.2.1":"2026-01-02T01:01:35.370Z"},"bugs":{"url":"https://github.com/cencori/cencori/issues"},"author":{"name":"FohnAI"},"license":"MIT","homepage":"https://cencori.com","keywords":["ai","cencori","vercel","ai-sdk","provider","streaming","llm","openai","anthropic","gemini"],"repository":{"type":"git","url":"git+https://github.com/cencori/cencori.git"},"description":"Cencori provider for Vercel AI SDK - use Cencori with streamText, generateText, and useChat","maintainers":[{"name":"bolaabanjo","email":"bolaabanjo@gmail.com"}],"readme":"# @cencori/ai-provider\n\nCencori provider for [Vercel AI SDK](https://github.com/vercel/ai) - use Cencori with `streamText()`, `generateText()`, and `useChat()`.\n\n## Installation\n\n```bash\nnpm install @cencori/ai-provider ai\n```\n\n## Quick Start\n\n```typescript\nimport { cencori } from '@cencori/ai-provider';\nimport { streamText } from 'ai';\n\nconst result = await streamText({\n  model: cencori('gemini-2.5-flash'),\n  messages: [{ role: 'user', content: 'Hello!' }]\n});\n\nfor await (const chunk of result.textStream) {\n  process.stdout.write(chunk);\n}\n```\n\n## Usage with Next.js App Router\n\n```typescript\n// app/api/chat/route.ts\nimport { cencori } from '@cencori/ai-provider';\nimport { streamText } from 'ai';\n\nexport async function POST(req: Request) {\n  const { messages } = await req.json();\n\n  const result = await streamText({\n    model: cencori('gemini-2.5-flash'),\n    messages\n  });\n\n  return result.toUIMessageStreamResponse();\n}\n```\n\n## Configuration\n\n### Environment Variable\n\nSet the `CENCORI_API_KEY` environment variable:\n\n```bash\nCENCORI_API_KEY=csk_your_key_here\n```\n\n### Custom Configuration\n\n```typescript\nimport { createCencori } from '@cencori/ai-provider';\n\nconst cencori = createCencori({\n  apiKey: 'csk_your_key_here',\n  baseUrl: 'https://cencori.com', // optional\n});\n\nconst result = await streamText({\n  model: cencori('gpt-4o'),\n  messages: [{ role: 'user', content: 'Hello!' }]\n});\n```\n\n## Supported Models\n\nUse any model supported by Cencori:\n\n| Provider | Models |\n|----------|--------|\n| OpenAI | `gpt-4o`, `gpt-4o-mini`, `o1` |\n| Anthropic | `claude-3-opus`, `claude-3-5-sonnet`, `claude-3-haiku` |\n| Google | `gemini-2.5-flash`, `gemini-2.0-flash`, `gemini-3-pro` |\n| xAI | `grok-4`, `grok-3` |\n| Mistral | `mistral-large`, `codestral` |\n| DeepSeek | `deepseek-v3.2`, `deepseek-reasoner` |\n| + More | Groq, Cohere, Perplexity, Together, Meta, Qwen, HuggingFace |\n\n## Features\n\n- ✅ Drop-in Vercel AI SDK compatibility\n- ✅ Works with `streamText()`, `generateText()`, `useChat()`\n- ✅ Built-in content safety filtering\n- ✅ Rate limiting protection\n- ✅ Full analytics in Cencori dashboard\n- ✅ Multi-provider support with one API key\n\n## License\n\nMIT © FohnAI\n","readmeFilename":"README.md"}