{"_id":"@helicone/ai-sdk-provider","_rev":"13-21ce1e335f2b8524961e2c014fd0146c","name":"@helicone/ai-sdk-provider","dist-tags":{"latest":"1.0.12"},"versions":{"1.0.0":{"name":"@helicone/ai-sdk-provider","version":"1.0.0","keywords":["ai","llm","vercel","ai-sdk","helicone","provider","openai","anthropic"],"author":{"name":"Helicone"},"license":"MIT","_id":"@helicone/ai-sdk-provider@1.0.0","maintainers":[{"name":"justintorre75","email":"justintorre75@gmail.com"},{"name":"colegottdank","email":"colegottdank@gmail.com"},{"name":"kavinvalli.helicone","email":"kavin@helicone.ai"},{"name":"connortbot","email":"connor@helicone.ai"}],"homepage":"https://github.com/Helicone/helicone-vercel-ai-sdk","bugs":{"url":"https://github.com/Helicone/helicone-vercel-ai-sdk/issues"},"bin":{"helicone-ai-sdk":"dist/index.js"},"dist":{"shasum":"3899f85fc9ee72289d2474f276ef9f0d52283f4c","tarball":"https://registry.npmjs.org/@helicone/ai-sdk-provider/-/ai-sdk-provider-1.0.0.tgz","fileCount":8,"integrity":"sha512-EacXP2iZeeLWAfafjaMxxwBLNltw8iyOXLIQfJqPaemeB5+4XPYxduIkMlrC9tPTrqCyhqhWTx/m66irIJBJug==","signatures":[{"sig":"MEUCIC6kjLCVK0XNWmwX4hcxASvWK413GEB3pKTppWMRsi+2AiEA5HwbZeRZtQcaCLGZvgGtRDJa8BfBNDqxMndMEWFgWLQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1245644},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"54dca089c8f4c871d3cb803487c1d75d6ff9ed84","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts,.tsx","test":"jest","build":"tsup","lint:fix":"eslint src --ext .ts,.tsx --fix","typecheck":"tsc --noEmit","test:watch":"jest --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"colegottdank","email":"colegottdank@gmail.com"},"repository":{"url":"git+https://github.com/Helicone/helicone-vercel-ai-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"Helicone provider for Vercel AI SDK","directories":{},"_nodeVersion":"20.19.0","dependencies":{"@ai-sdk/provider":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ai":"^5.0.0","tsx":"^4.0.0","zod":"^3.0.0","jest":"^29.5.0","tsup":"^8.0.0","dotenv":"^16.0.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"ai":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.0.0_1761066442090_0.8063701684745697","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@helicone/ai-sdk-provider","version":"1.0.1","keywords":["ai","llm","vercel","ai-sdk","helicone","provider","openai","anthropic"],"author":{"name":"Helicone"},"license":"MIT","_id":"@helicone/ai-sdk-provider@1.0.1","maintainers":[{"name":"justintorre75","email":"justintorre75@gmail.com"},{"name":"colegottdank","email":"colegottdank@gmail.com"},{"name":"kavinvalli.helicone","email":"kavin@helicone.ai"},{"name":"connortbot","email":"connor@helicone.ai"}],"homepage":"https://github.com/Helicone/helicone-vercel-ai-sdk","bugs":{"url":"https://github.com/Helicone/helicone-vercel-ai-sdk/issues"},"bin":{"helicone-ai-sdk":"dist/index.js"},"dist":{"shasum":"c9bfc9a27a520699ac1d1992d0d94676f267a8f5","tarball":"https://registry.npmjs.org/@helicone/ai-sdk-provider/-/ai-sdk-provider-1.0.1.tgz","fileCount":8,"integrity":"sha512-7ZUHQHrMFUvhNHiETa7cyPYwSei62A48qVFt0l7msrs906wC6ysl4PUWcZeFCtaTnLBF9ACIDzyba6QN7famsQ==","signatures":[{"sig":"MEUCIQCK6vWoOP4de8v/R+voEg62aLAzNxiOLN7T6J2+aSQ/+QIgYfe3EDSkgKIz1cDZxk8q0PfKqoZ5DpnZE1CXvpfKHHs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1247060},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"1ecc4c7f40e4592b7605fe85a57691da9f6360f5","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts,.tsx","test":"jest","build":"tsup","lint:fix":"eslint src --ext .ts,.tsx --fix","typecheck":"tsc --noEmit","test:watch":"jest --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"colegottdank","email":"colegottdank@gmail.com"},"repository":{"url":"git+https://github.com/Helicone/helicone-vercel-ai-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"Helicone provider for Vercel AI SDK","directories":{},"_nodeVersion":"20.19.0","dependencies":{"@ai-sdk/provider":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ai":"^5.0.0","tsx":"^4.0.0","zod":"^3.0.0","jest":"^29.5.0","tsup":"^8.0.0","dotenv":"^16.0.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"ai":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.0.1_1761070683854_0.2871084791814795","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@helicone/ai-sdk-provider","version":"1.0.2","keywords":["ai","llm","vercel","ai-sdk","helicone","provider","openai","anthropic"],"author":{"name":"Helicone"},"license":"MIT","_id":"@helicone/ai-sdk-provider@1.0.2","maintainers":[{"name":"justintorre75","email":"justintorre75@gmail.com"},{"name":"colegottdank","email":"colegottdank@gmail.com"},{"name":"kavinvalli.helicone","email":"kavin@helicone.ai"},{"name":"connortbot","email":"connor@helicone.ai"},{"name":"_juliettech","email":"juliette@helicone.ai"}],"homepage":"https://github.com/Helicone/helicone-vercel-ai-sdk","bugs":{"url":"https://github.com/Helicone/helicone-vercel-ai-sdk/issues"},"bin":{"helicone-ai-sdk":"dist/index.js"},"dist":{"shasum":"75562bcbe88f5a0bf22a78db97faa1913fd2afd0","tarball":"https://registry.npmjs.org/@helicone/ai-sdk-provider/-/ai-sdk-provider-1.0.2.tgz","fileCount":8,"integrity":"sha512-/1+RTQFlKzO0mirmx7+EE8mlmrr4JeY7UEF5qL2ABNXMedRnxQk8QZ0dJfiA+ajiQ9oNob2EjKvjB7osACoXPw==","signatures":[{"sig":"MEUCIQD3xmAsDSbb4tVT8cf+q57G6Ag4XBE7qW08x/pCNvYHXwIgSvA3oTU9M33fIIiUafc2WtLwHZGwkPVRfdTUzo5GKl8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1295045},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"0eca377990a9a866208bc12f2eedbc269c4b3394","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts,.tsx","test":"jest","build":"tsup","lint:fix":"eslint src --ext .ts,.tsx --fix","typecheck":"tsc --noEmit","test:watch":"jest --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"_juliettech","email":"juliette@helicone.ai"},"repository":{"url":"git+https://github.com/Helicone/helicone-vercel-ai-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"Helicone provider for Vercel AI SDK","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@ai-sdk/provider":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ai":"^5.0.0","tsx":"^4.0.0","zod":"^3.0.0","jest":"^29.5.0","tsup":"^8.0.0","dotenv":"^16.0.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"ai":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.0.2_1761095601184_0.7311461588743136","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@helicone/ai-sdk-provider","version":"1.0.3","keywords":["ai","llm","vercel","ai-sdk","helicone","provider","openai","anthropic"],"author":{"name":"Helicone"},"license":"MIT","_id":"@helicone/ai-sdk-provider@1.0.3","maintainers":[{"name":"justintorre75","email":"justintorre75@gmail.com"},{"name":"colegottdank","email":"colegottdank@gmail.com"},{"name":"kavinvalli.helicone","email":"kavin@helicone.ai"},{"name":"connortbot","email":"connor@helicone.ai"},{"name":"_juliettech","email":"juliette@helicone.ai"}],"homepage":"https://github.com/Helicone/helicone-vercel-ai-sdk","bugs":{"url":"https://github.com/Helicone/helicone-vercel-ai-sdk/issues"},"bin":{"helicone-ai-sdk":"dist/index.js"},"dist":{"shasum":"9b23b3292befcf587fa0edd66308ded774e240db","tarball":"https://registry.npmjs.org/@helicone/ai-sdk-provider/-/ai-sdk-provider-1.0.3.tgz","fileCount":8,"integrity":"sha512-FAODis870CRJeqh4Bcc6JPMDq0GJrXuEPISXANqVjHrvFWmZio4Ozo7j/O8badwmBAMFYP0InL6AWqbzF3UGGQ==","signatures":[{"sig":"MEYCIQDp6ef6nqrZUoohjpPUaNd4a+WGCjbcOp72oaopcSBuZgIhAMJE/M3TZMuF48WmPCsWyIKErh65MkmLSa1qPjamhaOW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1256378},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"cb65d07938bbaa10d5235bcc4e32747e030a097f","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts,.tsx","test":"jest","build":"tsup","lint:fix":"eslint src --ext .ts,.tsx --fix","typecheck":"tsc --noEmit","test:watch":"jest --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"_juliettech","email":"juliette@helicone.ai"},"repository":{"url":"git+https://github.com/Helicone/helicone-vercel-ai-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"Helicone provider for Vercel AI SDK","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@ai-sdk/provider":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ai":"^5.0.0","tsx":"^4.0.0","zod":"^3.0.0","jest":"^29.5.0","tsup":"^8.0.0","dotenv":"^16.0.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"ai":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.0.3_1761167737217_0.27922617851913034","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@helicone/ai-sdk-provider","version":"1.0.4","keywords":["ai","llm","vercel","ai-sdk","helicone","provider","openai","anthropic"],"author":{"name":"Helicone"},"license":"MIT","_id":"@helicone/ai-sdk-provider@1.0.4","maintainers":[{"name":"justintorre75","email":"justintorre75@gmail.com"},{"name":"colegottdank","email":"colegottdank@gmail.com"},{"name":"kavinvalli.helicone","email":"kavin@helicone.ai"},{"name":"connortbot","email":"connor@helicone.ai"},{"name":"_juliettech","email":"juliette@helicone.ai"}],"homepage":"https://github.com/Helicone/helicone-vercel-ai-sdk","bugs":{"url":"https://github.com/Helicone/helicone-vercel-ai-sdk/issues"},"bin":{"helicone-ai-sdk":"dist/index.js"},"dist":{"shasum":"5c2f5f149bf254ea2bf5161ef335e4edd0c64c0b","tarball":"https://registry.npmjs.org/@helicone/ai-sdk-provider/-/ai-sdk-provider-1.0.4.tgz","fileCount":8,"integrity":"sha512-iiKDwAKRX0h05p4aFbvNinX2h8wmRtF30CJTnLyEx64D0Wxq5xIqnxbUl3lIYO/SiMiavA9SoqMJeTNCdjStpQ==","signatures":[{"sig":"MEQCIEafLpTn66z3l6XgmG9cK5fb6OkdbfZjf4A68x+vR0UyAiA6OR9sPcWy8IGbYjS98Fs8hRn6sVpEEwSiyChxP1OESw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1255314},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"3fa40ec29acf6d816535bb6b08d1bc631efb6f64","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts,.tsx","test":"jest","build":"tsup","lint:fix":"eslint src --ext .ts,.tsx --fix","typecheck":"tsc --noEmit","test:watch":"jest --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"_juliettech","email":"juliette@helicone.ai"},"repository":{"url":"git+https://github.com/Helicone/helicone-vercel-ai-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"Helicone provider for Vercel AI SDK","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@ai-sdk/provider":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ai":"^5.0.0","tsx":"^4.0.0","zod":"^3.0.0","jest":"^29.5.0","tsup":"^8.0.0","dotenv":"^16.0.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"ai":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.0.4_1761173499955_0.9836759920322349","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@helicone/ai-sdk-provider","version":"1.0.5","keywords":["ai","llm","vercel","ai-sdk","helicone","provider","openai","anthropic"],"author":{"name":"Helicone"},"license":"MIT","_id":"@helicone/ai-sdk-provider@1.0.5","maintainers":[{"name":"justintorre75","email":"justintorre75@gmail.com"},{"name":"colegottdank","email":"colegottdank@gmail.com"},{"name":"kavinvalli.helicone","email":"kavin@helicone.ai"},{"name":"connortbot","email":"connor@helicone.ai"},{"name":"_juliettech","email":"juliette@helicone.ai"}],"homepage":"https://github.com/Helicone/helicone-vercel-ai-sdk","bugs":{"url":"https://github.com/Helicone/helicone-vercel-ai-sdk/issues"},"bin":{"helicone-ai-sdk":"dist/index.js"},"dist":{"shasum":"5cbc25e72afd3dcd39f05f4e7560394f29c2c834","tarball":"https://registry.npmjs.org/@helicone/ai-sdk-provider/-/ai-sdk-provider-1.0.5.tgz","fileCount":8,"integrity":"sha512-Gmp8PD0ukC8+jwQgZ13TWeIkDJkQAWxdWisPTfhvOn/Wya7a5ae9eKkqSB8u/CwIALha5bEYunK+rVeL8/9wqQ==","signatures":[{"sig":"MEQCIDW0JYF8tg3PRC8jr7V4Xp5MqLtLG6tH30m2XT+xCoSWAiAx78CFG6plnY+ZhfssdoM6yvFYQRGqR8J3K/kWxekmiw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1305796},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"347c1f12ca035ff660aabd44cbbbe2118aaa0eb3","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts,.tsx","test":"jest","build":"tsup","lint:fix":"eslint src --ext .ts,.tsx --fix","typecheck":"tsc --noEmit","test:watch":"jest --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"_juliettech","email":"juliette@helicone.ai"},"repository":{"url":"git+https://github.com/Helicone/helicone-vercel-ai-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"Helicone provider for Vercel AI SDK","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@ai-sdk/provider":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ai":"5.0.59","tsx":"^4.0.0","zod":"^4.0.0","jest":"^29.5.0","tsup":"^8.0.0","dotenv":"^16.0.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"ai":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.0.5_1761177638076_0.13465546701751263","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@helicone/ai-sdk-provider","version":"1.0.6","keywords":["ai","llm","vercel","ai-sdk","helicone","provider","openai","anthropic"],"author":{"name":"Helicone"},"license":"MIT","_id":"@helicone/ai-sdk-provider@1.0.6","maintainers":[{"name":"justintorre75","email":"justintorre75@gmail.com"},{"name":"colegottdank","email":"colegottdank@gmail.com"},{"name":"kavinvalli.helicone","email":"kavin@helicone.ai"},{"name":"connortbot","email":"connor@helicone.ai"},{"name":"_juliettech","email":"juliette.chevaliera@gmail.com"}],"homepage":"https://github.com/Helicone/ai-sdk-provider/","bugs":{"url":"https://github.com/Helicone/ai-sdk-provider/issues"},"bin":{"helicone-ai-sdk":"dist/index.js"},"dist":{"shasum":"0061cfdc94c12c4785c5fb14c969202eec53b922","tarball":"https://registry.npmjs.org/@helicone/ai-sdk-provider/-/ai-sdk-provider-1.0.6.tgz","fileCount":8,"integrity":"sha512-ohqcQNQlJQ65mshgXIRl8XxLnpGyy6bYwzglnH32W6DDoG5LehP8CgBEvrPc3ZI/saruIGu9GvxVddqQAmLFxQ==","signatures":[{"sig":"MEYCIQCfgYfLXJ9SeRDpykCIM5U9B/J6Nz9ib/XwzCfhS9FXkQIhAL+96EpsObzrlhaut/Xic0ppuquzrqrmK4MIUkMjACRg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1303341},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"592dff6c5687a8b06c8658acc8ccec070bc089f3","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts,.tsx","test":"jest","build":"tsup","lint:fix":"eslint src --ext .ts,.tsx --fix","typecheck":"tsc --noEmit","test:watch":"jest --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"_juliettech","email":"juliette.chevaliera@gmail.com"},"repository":{"url":"git+https://github.com/Helicone/ai-sdk-provider.git","type":"git"},"_npmVersion":"10.8.2","description":"Helicone provider for Vercel AI SDK","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@ai-sdk/provider":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ai":"5.0.59","tsx":"^4.0.0","zod":"^4.0.0","jest":"^29.5.0","tsup":"^8.0.0","dotenv":"^16.0.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"ai":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.0.6_1763581257756_0.27322788063095826","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@helicone/ai-sdk-provider","version":"1.0.7","keywords":["ai","llm","vercel","ai-sdk","helicone","provider","openai","anthropic"],"author":{"name":"Helicone"},"license":"MIT","_id":"@helicone/ai-sdk-provider@1.0.7","maintainers":[{"name":"justintorre75","email":"justintorre75@gmail.com"},{"name":"colegottdank","email":"colegottdank@gmail.com"},{"name":"kavinvalli.helicone","email":"kavin@helicone.ai"},{"name":"connortbot","email":"connor@helicone.ai"},{"name":"_juliettech","email":"juliette.chevaliera@gmail.com"}],"homepage":"https://github.com/Helicone/ai-sdk-provider/","bugs":{"url":"https://github.com/Helicone/ai-sdk-provider/issues"},"bin":{"helicone-ai-sdk":"dist/index.js"},"dist":{"shasum":"b883218aab15a79dc0a0e40e8b0935a708d6ad9f","tarball":"https://registry.npmjs.org/@helicone/ai-sdk-provider/-/ai-sdk-provider-1.0.7.tgz","fileCount":8,"integrity":"sha512-CWt1fvgmvJp1I4KS1KlujyEDTGih/uOs3PAIbb+TY7pnvAkaKgyYDseCMsXYuA1FaR9eoi7gIxa6uh97E24OHA==","signatures":[{"sig":"MEYCIQDYWikowQVsdMaeDB0p7AoogSmPiCTErZxWfoxVArl4PQIhAOjf2x3WGoIxl9+goUGYnr7kRBKUpM0CJyZPm+BYdXZO","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1314588},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"85394517a70c860b0ffd6ba95f95b28635342697","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts,.tsx","test":"jest","build":"tsup","lint:fix":"eslint src --ext .ts,.tsx --fix","typecheck":"tsc --noEmit","test:watch":"jest --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"_juliettech","email":"juliette.chevaliera@gmail.com"},"repository":{"url":"git+https://github.com/Helicone/ai-sdk-provider.git","type":"git"},"_npmVersion":"10.8.2","description":"Helicone provider for Vercel AI SDK","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@ai-sdk/provider":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ai":"^5.0.97","tsx":"^4.0.0","zod":"^4.0.0","jest":"^29.5.0","tsup":"^8.0.0","dotenv":"^16.0.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"ai":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.0.7_1763670089307_0.560803126235871","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@helicone/ai-sdk-provider","version":"1.0.9","keywords":["ai","llm","vercel","ai-sdk","helicone","provider","openai","anthropic"],"author":{"name":"Helicone"},"license":"MIT","_id":"@helicone/ai-sdk-provider@1.0.9","maintainers":[{"name":"justintorre75","email":"justintorre75@gmail.com"},{"name":"colegottdank","email":"colegottdank@gmail.com"},{"name":"kavinvalli.helicone","email":"kavin@helicone.ai"},{"name":"connortbot","email":"connor@helicone.ai"},{"name":"_juliettech","email":"juliette.chevaliera@gmail.com"}],"homepage":"https://github.com/Helicone/ai-sdk-provider/","bugs":{"url":"https://github.com/Helicone/ai-sdk-provider/issues"},"bin":{"helicone-ai-sdk":"dist/index.js"},"dist":{"shasum":"f686c2b75230dc9d4eacabeb96c6ca32896d7509","tarball":"https://registry.npmjs.org/@helicone/ai-sdk-provider/-/ai-sdk-provider-1.0.9.tgz","fileCount":8,"integrity":"sha512-iHgDZ6zaV5M5Z5uSMH87peceplkxEUVz4or2khJGhKnIj7pPUJnM9lNzk3l5TPlegIu+1whZ4+tVMH7iFCyBOw==","signatures":[{"sig":"MEYCIQC5XquohFqBaaT/qUx5nSi6NGKbEEidPMhYqMOXcRgcBwIhAIhgHS+rCRsTESdWy/dDk7BvFTaCfNbV3qo2/ql8GdlJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1325037},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"45090fd2e5ec11ee73034021dcea9d6a8f84cc4e","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts,.tsx","test":"jest","build":"tsup","lint:fix":"eslint src --ext .ts,.tsx --fix","typecheck":"tsc --noEmit","test:watch":"jest --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"_juliettech","email":"juliette.chevaliera@gmail.com"},"repository":{"url":"git+https://github.com/Helicone/ai-sdk-provider.git","type":"git"},"_npmVersion":"10.8.2","description":"Helicone provider for Vercel AI SDK","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@ai-sdk/provider":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0-beta.105","tsx":"^4.0.0","zod":"^4.0.0","jest":"^29.5.0","tsup":"^8.0.0","dotenv":"^16.0.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"ai":"^6.0.0-beta.105"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.0.9_1764697432081_0.6051675758611057","host":"s3://npm-registry-packages-npm-production"}},"1.0.10":{"name":"@helicone/ai-sdk-provider","version":"1.0.10","keywords":["ai","llm","vercel","ai-sdk","helicone","provider","openai","anthropic"],"author":{"name":"Helicone"},"license":"MIT","_id":"@helicone/ai-sdk-provider@1.0.10","maintainers":[{"name":"justintorre75","email":"justintorre75@gmail.com"},{"name":"colegottdank","email":"colegottdank@gmail.com"},{"name":"kavinvalli.helicone","email":"kavin@helicone.ai"},{"name":"connortbot","email":"connor@helicone.ai"},{"name":"_juliettech","email":"juliette.chevaliera@gmail.com"}],"homepage":"https://github.com/Helicone/ai-sdk-provider/","bugs":{"url":"https://github.com/Helicone/ai-sdk-provider/issues"},"bin":{"helicone-ai-sdk":"dist/index.js"},"dist":{"shasum":"d5ae77fe7aba893c6e6057539bde95b005bcdb35","tarball":"https://registry.npmjs.org/@helicone/ai-sdk-provider/-/ai-sdk-provider-1.0.10.tgz","fileCount":8,"integrity":"sha512-EGa3zdo5io5SoR68pobTObGns9jYdlYE+mWnbj64KEYhfG56IXdTaMgpl5xfvoOGaES0LtZWmKyPJYuFwCyAoQ==","signatures":[{"sig":"MEYCIQCKFAFTprsyn/2twYup02RQmN7T9OcR/scY1EOn9Co/CAIhAMCsLCxsESkotf5gs1AyFykvQUF4EQ4YNiFKaI73IrI2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1326892},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"748126cce8260aab732831da5ab391aae9bdd9d2","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts,.tsx","test":"jest","build":"tsup","lint:fix":"eslint src --ext .ts,.tsx --fix","typecheck":"tsc --noEmit","test:watch":"jest --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"_juliettech","email":"juliette.chevaliera@gmail.com"},"repository":{"url":"git+https://github.com/Helicone/ai-sdk-provider.git","type":"git"},"_npmVersion":"10.8.2","description":"Helicone provider for Vercel AI SDK","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@ai-sdk/provider":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ai":"^5.0.93","tsx":"^4.0.0","zod":"^4.0.0","jest":"^29.5.0","tsup":"^8.0.0","dotenv":"^16.0.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.0.10_1764792701136_0.3079548800652878","host":"s3://npm-registry-packages-npm-production"}},"1.0.11":{"name":"@helicone/ai-sdk-provider","version":"1.0.11","keywords":["ai","llm","vercel","ai-sdk","helicone","provider","openai","anthropic"],"author":{"name":"Helicone"},"license":"MIT","_id":"@helicone/ai-sdk-provider@1.0.11","maintainers":[{"name":"justintorre75","email":"justintorre75@gmail.com"},{"name":"colegottdank","email":"colegottdank@gmail.com"},{"name":"kavinvalli.helicone","email":"kavin@helicone.ai"},{"name":"connortbot","email":"connor@helicone.ai"},{"name":"_juliettech","email":"juliette.chevaliera@gmail.com"}],"homepage":"https://github.com/Helicone/ai-sdk-provider/","bugs":{"url":"https://github.com/Helicone/ai-sdk-provider/issues"},"bin":{"helicone-ai-sdk":"dist/index.js"},"dist":{"shasum":"cb13f0fa7ee8ee1a8f508d61c34d07e09adf0b1b","tarball":"https://registry.npmjs.org/@helicone/ai-sdk-provider/-/ai-sdk-provider-1.0.11.tgz","fileCount":8,"integrity":"sha512-8TnzZNP/a6wrGJk9bKqAqxK/oma6AlDaERuKTM5bgZTji9gQF0tDPZgXZg5y4KO3IwIcgWH4yWd2v+M1mNnpHw==","signatures":[{"sig":"MEUCIEvNL6QRFEOaJKmpSOAkO/K+z3jEY9drNbZgT5yIOUA1AiEA/AZOBCwdzNnvpvRVfFMO92dYndN0148mqMJehPx6kHA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1329469},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"9f6f65c1c5d4c2a7eda78fc34b4d93372d239a0a","scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts,.tsx","test":"jest","build":"tsup","lint:fix":"eslint src --ext .ts,.tsx --fix","typecheck":"tsc --noEmit","test:watch":"jest --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"_juliettech","email":"juliette.chevaliera@gmail.com"},"repository":{"url":"git+https://github.com/Helicone/ai-sdk-provider.git","type":"git"},"_npmVersion":"10.8.2","description":"Helicone provider for Vercel AI SDK","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@ai-sdk/provider":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ai":"^5.0.93","tsx":"^4.0.0","zod":"^4.0.0","jest":"^29.5.0","tsup":"^8.0.0","dotenv":"^16.0.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.0.11_1766009908629_0.3311501133686219","host":"s3://npm-registry-packages-npm-production"}},"1.0.12":{"name":"@helicone/ai-sdk-provider","version":"1.0.12","description":"Helicone provider for Vercel AI SDK","type":"module","main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"}},"scripts":{"build":"tsup","dev":"tsup --watch","test":"jest","test:watch":"jest --watch","lint":"eslint src --ext .ts,.tsx","lint:fix":"eslint src --ext .ts,.tsx --fix","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"bin":{"helicone-ai-sdk":"dist/index.js"},"keywords":["ai","llm","vercel","ai-sdk","helicone","provider","openai","anthropic"],"author":{"name":"Helicone"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Helicone/ai-sdk-provider.git"},"homepage":"https://github.com/Helicone/ai-sdk-provider/","bugs":{"url":"https://github.com/Helicone/ai-sdk-provider/issues"},"dependencies":{"@ai-sdk/provider":"^2.0.0"},"devDependencies":{"ai":"^5.0.93","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/eslint-plugin":"^6.0.0","@typescript-eslint/parser":"^6.0.0","dotenv":"^16.0.0","eslint":"^8.0.0","jest":"^29.5.0","ts-jest":"^29.1.0","tsup":"^8.0.0","tsx":"^4.0.0","typescript":"^5.0.0","zod":"^4.0.0"},"_id":"@helicone/ai-sdk-provider@1.0.12","gitHead":"926873bc4db8777c078d6bc9eccdd2de68a84ccb","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-oDxaW4/24/bFWRhPxaFVnvYyp7NsmWmkDltC7dHKmgysWAv7vdqc8tK12buQ8jv2LEHCWhHOJ7NK4dgJgnlx/A==","shasum":"d57ece85c723dcafd4dfbdcd89f74da916f723d6","tarball":"https://registry.npmjs.org/@helicone/ai-sdk-provider/-/ai-sdk-provider-1.0.12.tgz","fileCount":8,"unpackedSize":1330812,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCZsQsnmnu1yFX80bSQQJGTC6Wy3slhD6wTiHZPVC0YvwIgKWbYbSs0/iPjIvNqtXwNznDYaxgkAkbDEjQTaHn8LzQ="}]},"_npmUser":{"name":"_juliettech","email":"juliette.chevaliera@gmail.com"},"directories":{},"maintainers":[{"name":"justintorre75","email":"justintorre75@gmail.com"},{"name":"colegottdank","email":"colegottdank@gmail.com"},{"name":"kavinvalli.helicone","email":"kavin@helicone.ai"},{"name":"connortbot","email":"connor@helicone.ai"},{"name":"_juliettech","email":"juliette.chevaliera@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ai-sdk-provider_1.0.12_1767827940706_0.5641060242626237"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-21T17:07:22.020Z","modified":"2026-01-07T23:19:01.138Z","1.0.0":"2025-10-21T17:07:22.344Z","1.0.1":"2025-10-21T18:18:04.076Z","1.0.2":"2025-10-22T01:13:21.419Z","1.0.3":"2025-10-22T21:15:37.510Z","1.0.4":"2025-10-22T22:51:40.148Z","1.0.5":"2025-10-23T00:00:38.338Z","1.0.6":"2025-11-19T19:40:58.027Z","1.0.7":"2025-11-20T20:21:29.556Z","1.0.9":"2025-12-02T17:43:52.311Z","1.0.10":"2025-12-03T20:11:41.308Z","1.0.11":"2025-12-17T22:18:28.830Z","1.0.12":"2026-01-07T23:19:00.917Z"},"bugs":{"url":"https://github.com/Helicone/ai-sdk-provider/issues"},"author":{"name":"Helicone"},"license":"MIT","homepage":"https://github.com/Helicone/ai-sdk-provider/","keywords":["ai","llm","vercel","ai-sdk","helicone","provider","openai","anthropic"],"repository":{"type":"git","url":"git+https://github.com/Helicone/ai-sdk-provider.git"},"description":"Helicone provider for Vercel AI SDK","maintainers":[{"name":"justintorre75","email":"justintorre75@gmail.com"},{"name":"colegottdank","email":"colegottdank@gmail.com"},{"name":"kavinvalli.helicone","email":"kavin@helicone.ai"},{"name":"connortbot","email":"connor@helicone.ai"},{"name":"_juliettech","email":"juliette.chevaliera@gmail.com"}],"readme":"# Helicone AI SDK Provider\n\nA [Vercel AI SDK](https://ai-sdk.dev/) provider for [Helicone](https://helicone.ai/), enabling seamless integration with Helicone's AI gateway and observability platform.\n\n## Features\n\n- ✅ **100+ AI Models**: Access to OpenAI, Anthropic, Google, Groq, and more through Helicone's AI gateway\n- ✅ **Observability**: Automatic request logging, metrics, and monitoring through Helicone\n- ✅ **Model Switching**: Easy switching between different AI providers and models\n- ✅ **Fallbacks**: Configure model fallbacks for improved reliability\n- ✅ **Caching**: Built-in caching support for faster responses\n- ✅ **Sessions & Tags**: Organize requests with sessions, user IDs, and custom tags\n- ✅ **BYOK**: Bring your own key\n- ✅ **TypeScript**: Full TypeScript support with comprehensive type definitions\n\n## Installation\n\n```bash\nnpm install @helicone/ai-sdk-provider ai\n```\n\n## Quick Start\n\n```typescript\nimport { createHelicone } from '@helicone/ai-sdk-provider';\nimport { generateText } from 'ai';\n\n// Initialize the provider\nconst helicone = createHelicone({\n  apiKey: 'your-helicone-api-key'\n});\n\n// Generate text using GPT-4o\nconst result = await generateText({\n  model: helicone('gpt-4o'),\n  prompt: 'Write a haiku about AI',\n});\n\nconsole.log(result.text);\n```\n\n## Configuration\n\n### Basic Setup\n\n```typescript\nimport { createHelicone } from '@helicone/ai-sdk-provider';\n\nconst helicone = createHelicone({\n  apiKey: 'your-helicone-api-key'\n});\n```\n\n### Model Selection\n\nSpecify models by name only when making the request. For the complete list of supported model names, visit [helicone.ai/models](https://helicone.ai/models).\n\nHelicone's AI gateway will automatically route to the cheapest provider:\n\n```typescript\nconst result = await generateText({\n  model: helicone('gpt-4o'),\n  prompt: 'Write a haiku about AI'\n});\n\nconsole.log(result.text);\n```\n\nIf you'd like to select your own provider, you can do so by passing the provider name as the second argument:\n\n```typescript\nconst result = await generateText({\n  model: helicone('claude-4.5-sonnet/anthropic'),\n  prompt: 'Write a haiku about AI'\n});\n\nconsole.log(result.text);\n```\n\n## Advanced Features\n\n### Helicone Prompts Integration\n\nUse prompts created in your [Helicone dashboard](https://helicone.ai/prompts) instead of hardcoding messages in your application.\n\n```typescript\nimport { createHelicone } from '@helicone/ai-sdk-provider';\nimport type { WithHeliconePrompt } from '@helicone/ai-sdk-provider';\nimport { generateText } from 'ai';\n\nconst helicone = createHelicone({ apiKey: 'your-helicone-api-key' });\n\nconst result = await generateText({\n  model: helicone('gpt-4o', {\n    promptId: 'sg45wqc', // Get this from your Helicone dashboard after saving your prompt\n    inputs: {\n      customer_name: 'Sarah Johnson',\n      issue_type: 'billing',\n      account_type: 'premium'\n    },\n    environment: 'production', // optional, defaults to 'production'\n    extraBody: {\n      helicone: {\n        sessionId: 'support-session-123',\n        properties: {\n          department: 'customer-support'\n        }\n      }\n    }\n  }),\n  messages: [{ role: 'user', content: 'placeholder' }] // Required by AI SDK, ignored when using promptId\n} as WithHeliconePrompt);\n```\n\n> **Note:** When using `promptId`, you must still pass a placeholder `messages` array to satisfy the Vercel AI SDK's validation. The actual prompt content will be fetched from your Helicone dashboard, and the placeholder messages will be ignored.\n\n**Benefits of using Helicone prompts:**\n- 🎯 **Centralized Management**: Update prompts without code changes\n- 👩🏻‍💻 **Perfect for non-technical users**: No need to write code to create prompts, just use the Helicone dashboard.\n- 🚀 **Lower Latency**: Single API call, no message construction overhead\n- 🔧 **A/B Testing**: Test different prompt versions with environments\n- 📊 **Better Analytics**: Track prompt performance across versions\n\n### Session Tracking\n\n```typescript\nconst result = await generateText({\n  model: helicone('gpt-4o', {\n    extraBody: {\n      helicone: {\n        sessionId: 'user-chat-session-123',\n        userId: 'user-456',\n        properties: {\n          environment: 'production',\n          feature: 'chat',\n        },\n      },\n    },\n  }),\n  prompt: 'Hello!',\n});\n```\n\n### Custom Tags and Properties\n\n```typescript\nconst result = await generateText({\n  model: helicone('gpt-4o', {\n    extraBody: {\n      helicone: {\n        tags: ['customer-support', 'urgent'],\n        properties: {\n          ticketId: 'TICKET-789',\n          priority: 'high',\n          department: 'support',\n        },\n      },\n    },\n  }),\n  prompt: 'Help resolve this customer issue...',\n});\n```\n\n### Streaming\n\n```typescript\nimport { streamText } from 'ai';\n\nconst result = await streamText({\n  model: helicone('gpt-4o'),\n  prompt: 'Write a long story about space exploration',\n});\n\nfor await (const chunk of result.textStream) {\n  process.stdout.write(chunk);\n}\n```\n\n### Tool Calling\n\n```typescript\nimport { generateText, tool } from 'ai';\nimport { z } from 'zod';\n\nconst result = await generateText({\n  model: helicone('gpt-4o'),\n  prompt: 'What is the weather like in San Francisco?',\n  tools: {\n    getWeather: tool({\n      description: 'Get weather for a location',\n      inputSchema: z.object({\n        location: z.string().describe('The city name')\n      }),\n      execute: async (args) => {\n        // Your weather API call here\n        return `It's sunny in ${args.location}`;\n      }\n    })\n  }\n});\n\nconsole.log(result.text);\n```\n\nSee `examples/tool-calling.ts` for a complete example.\n\n### Agent Examples (JSON Schema vs Zod)\n\nWe ship two agent demos that are functionally identical but highlight different schema styles:\n- `examples/agents-json.ts` uses `jsonSchema(...)` helpers with a Claude model (`claude-4.5-haiku`).\n- `examples/agents-zod.ts` uses raw Zod schemas with a different model (`gpt-5-chat-latest`).\n\nBoth send the same tool definitions through Helicone; any difference in behavior comes from model choice or prompt/tool-choice settings. To make their outputs align, use the same model ID in both, optionally set `toolChoice: { type: 'required' }`, or tighten the system prompt to force tool usage.\n\n### Prompt Environments\n\nUse different prompt versions for different environments:\n\n```typescript\n// Development environment\nconst devResult = await generateText({\n  model: helicone('gpt-4o', {\n    promptId: 'adsfo87yu', // Get this from your Helicone dashboard after saving your prompt\n    inputs: { user_name: 'Alex' },\n    environment: 'development'\n  }),\n  messages: [{ role: 'user', content: 'placeholder' }]\n});\n\n// Production environment\nconst prodResult = await generateText({\n  model: helicone('gpt-4o', {\n    promptId: '32q5wre', // Get this from your Helicone dashboard after saving your prompt\n    inputs: { user_name: 'Alex' },\n    environment: 'production' // or omit for default\n  }),\n  messages: [{ role: 'user', content: 'placeholder' }]\n});\n```\n\n### Combining Prompts with Streaming\n\n```typescript\nconst result = await streamText({\n  model: helicone('gpt-4o', {\n    promptId: 'asdfa67',\n    inputs: {\n      topic: 'artificial intelligence',\n      tone: 'professional',\n      length: 'medium'\n    }\n  }),\n  messages: [{ role: 'user', content: 'placeholder' }]\n});\n\nfor await (const chunk of result.textStream) {\n  process.stdout.write(chunk);\n}\n```\n\nSee `examples/prompts.ts` for comprehensive prompt integration examples.\n\n## Examples\n\nThis package includes comprehensive examples demonstrating various features and use cases. All examples can be run using `tsx`:\n\n```bash\nnpx tsx examples/<example-name>.ts\n```\n\n### Available Examples\n\n#### `basic.ts`\nSimple text generation example showing basic usage of the Helicone provider with `generateText`.\n\n#### `streaming.ts`\nDemonstrates streaming responses from the model using `streamText`, including both `textStream` and `toUIMessageStreamResponse` methods.\n\n#### `advanced-tracking.ts`\nShows how to use advanced tracking features like session IDs, user IDs, custom properties, tags, and caching for better observability.\n\n#### `multiple-providers.ts`\nExample of using multiple AI providers (e.g., Novita DeepSeek and Anthropic Claude) through Helicone's unified gateway, comparing responses from different models.\n\n#### `tool-calling.ts`\nComprehensive example demonstrating how to use tool calling (function calling) with `generateText`. Includes weather lookup and mathematical calculation tools, showing how tool definitions are sent and tool call requests are received.\n\n#### `stream-tool-calling.ts`\nDemonstrates streaming with tool calling using `streamText`. Shows how to handle tool calls and results in a streaming context, including processing `fullStream` chunks for text deltas, tool calls, and tool results.\n\n#### `streamText-tools-properties.ts`\nExample showing tool calling with `streamText` and how to access tool properties in the streaming response, useful for debugging and monitoring tool execution.\n\n#### `prompts.ts`\nComprehensive examples of Helicone prompts integration, including:\n- Basic prompt usage with inputs\n- Streaming with prompts\n- Multiple environment configurations (development, staging, production)\n- Prompts combined with tools\n- Regular messages (without prompts) for comparison\n\n#### `agent-tools.ts`\nDemonstrates using the experimental `Agent` class with Helicone, showing a customer support agent with multiple tools (knowledge base search, workflow checking, ticket escalation) and detailed step-by-step execution tracking.\n\n#### `agents-json.ts`\nAgent demo using `jsonSchema(...)` helpers to define tool schemas. Shows how to structure agent tools using JSON Schema format.\n\n#### `agents-zod.ts`\nAgent demo using raw Zod schemas to define tool schemas. Functionally similar to `agents-json.ts` but demonstrates the Zod schema approach.\n\n#### `validate-ui-messages.ts`\nExample demonstrating how to use `validateUIMessages` with Helicone provider, commonly used in API routes. Shows how to handle AI SDK v6 UI message format with `parts` array, including validation, conversation history, and edge cases.\n\nFor more details, see the [examples README](examples/README.md).\n\n## BYOK - Bring your own key\n\nYou can also configure your provider using your own provider API key in your [Helicone account settings](https://us.helicone.ai/settings/providers).\n\n## Supported Models\n\nThe provider supports all models available through Helicone's AI gateway, including:\n\n- **OpenAI**: gpt-4o, gpt-4o-mini, chatgpt-4o-latest, o3, o3-mini, etc.\n- **Anthropic**: claude-4.5-sonnet, claude-3.7-sonnet, claude-3.5-haiku, claude-opus-4, etc.\n- **Google**: gemini-2.5-pro, gemini-2.5-flash, gemma-3-12b-it, etc.\n- **xAI**: grok-4, grok-code-fast-1\n- **And many more providers**\n\nFor the complete and up-to-date list of supported models, visit [helicone.ai/models](https://helicone.ai/models).\n\n## License\n\nMIT © [Helicone](https://helicone.ai)\n\n## Links\n\n- [Helicone Website](https://helicone.ai)\n- [Helicone Documentation](https://docs.helicone.ai)\n- [Vercel AI SDK](https://ai-sdk.dev/)\n- [Helicone GitHub Repository](https://github.com/Helicone/helicone)\n","readmeFilename":"README.md"}