## vercel/ai — v0.0.2…v2.1.10

_229+ commits._

### Features
- **Support for function calling (updated react hook + stream utilities) (#178)** (a7b3d0e)
- **Feature/support credentials on hooks (#222)** (086ac9d)
- **docs/guides: add SvelteKit link to guides in the sidebar** (9a5ec54)
- **core/react: add <Tokens /> RSC  for streaming in responses (#229)** (9cdf968)
- **feat: add Cohere stream parser (#137)** (e934e9a)
- **Support extra request options in chat and completion (#193)** (44d9879)
- **Add changeset** (c16d650)
- **feat: add createdAt on user input message (#89)** (a9591fe)
- **add changeset** (9fdb51a)
- **feat: add vue composables and nuxt implementation (#84)** (71f9c51)
- **Add docs folder** (9f28b9c)
- **Add onError callback, include response text in error if response is not okay (#47)** (c6586a2)
- **Add huggingface example** (f9424f6)
- **Add a real readme for examples** (0748fe4)
- **add changeset** (7de2185)
- **Implement new start-of-stream newline trimming (#35)** (fc83e95)
- **Add mdx to prettier check** (0b5d4e9)
- **add docs for AnthropicStream and streamToResponse** (18cfd78)
- **Add `streamToResponse` (#24)** (d70a9e7)
- **add anthropic guide** (ff8b224)

### Fixes
- **Fix release pull request** (f33a456)
- **docs/guides: Fix guides/_meta OpenAI entry** (d232a22)
- **fix: update Sveltekit to newest version (#243)** (8163d44)
- **guides/huggingface: fix incorrect URLs** (1f20e6d)
- **Fix spelling in next-huggingface example (#226)** (764f88f)
- **core/types: fix types to support async onResponse callback (#190)** (bde3898)
- **fix type error** (7815b11)
- **fix: Set `stream: true` when decoding streamed chunks (#182)** (23f0899)
- **Fix: Issue #94 CallbackManager is deprecated (#165)** (89938b0)
- **fix: types for onChange event on input/textarea on react lib added (#91)** (85be9bd)
- **Fix typo in `useCompletion` example (#162)** (fd69e9a)
- **Fix typo (#150)** (6ed559a)
- **examples/nuxt-langchain: throw error if no AI key is set, fix lint/prettier conflict** (44998c4)
- **Fix formatting** (cf664eb)
- **fix(examples): promisify nuxt streaming response (#115)** (916da30)
- **svelte example: fix building due to static env var** (cad9fd9)
- **fix turbo tasks** (f1458fc)
- **fix: Fix bundling (#111)** (f37d4ec)
- **fix errors in sveltekit docs (#92)** (d575f15)
- **fix: add better typing for `store` within svelte implementation (#104)** (44c70ce)
- **fix(docs): compatibility misspelling again (#96)** (5d1d72c)
- **use pnpm dlx, fix some links (#86)** (4315d17)
- **Fix(docs): Missing word and typo (#79)** (84e4ada)
- **Fix(docs): Fix an invalid link in api reference index page (#73)** (fa93630)
- **fix(docs): typo in getting started (#78)** (264d1f1)
- **Fix typo (#64)** (3946f7a)
- **guides: fix streaming-text-response links** (02dc525)
- **Fix(docs): Fix broken links in `api-reference` (#59)** (dce03d4)
- **Fix typo in `backpressure-and-cancellation.mdx` (#58)** (79f7b26)
- **Fix(docs): Fix some typos in `Getting Started` page (#54)** (caa0e81)
- **Fix typo in caching.mdx (#55)** (bb12ad4)
- **Fix typo in code** (ccf85c4)
- **fix link typo in huggingface example (#53)** (c4db77c)
- **Fix docs path** (b35321a)
- **Fix stuff** (1e5d5ba)
- **Fix huggingface example** (e06e59d)
- **Fix package exports (#41)** (a6bc35c)
- **Fix deps** (228c59d)
- **Fix useCompletion behavior** (c4c1be3)
- **Fix sidebar** (1f4531f)

### Backend
- **Bump lockfile** (a2d4d00)
- **Version Packages (#245)** (7409cce)
- **Remove ignored packages from changeset** (83941ba)
- **Bump lockfile** (70a6661)
- **Version Packages (#236)** (78d5924)
- **Lockfile fixes** (4f6c2b6)
- **Version Packages (#202)** (107e436)
- **Bump lockfile** (0579836)
- **Version Packages (#191)** (e377d41)
- **update pnpm-lcok.yaml** (b8ecfc5)
- **Version Packages (#183)** (c9633ed)
- **Version Packages (#177)** (92da981)
- **Pin packageManager to 8.6.3** (6f6f529)
- **Version Packages (#176)** (a6dbc78)
- **Linting for #91** (31c0bbe)
- **Set runtime to edge in sveltekit** (9f672d1)
- **Improve docs landing** (4b0e2d1)
- **Move useCompletion prompt to server** (fead19b)
- **Update README.md (#151)** (3bbfc95)
- **Update backpressure-and-cancellation.mdx (#123)** (6ce12ff)
- **Update README.md (#142)** (b0d6e56)
- **Update README.md** (1b6c9d6)
- **Bump pnpm to 8 in workflows (#127)** (f4d2bf1)
- **Feature/implement nuxt langchain example (#119)** (5a549a3)
- **Version Packages (#126)** (05e11c1)
- **Create .kodiak.toml** (ab95cdc)
- **Move readme to package, symlink to root (#120)** (04a1adb)
- **use `$env/static/private` for API key (#95)** (6292bb9)
- **update lockfile** (ed735f2)
- **Version Packages (#112)** (ece317f)
- **Version Packages (#109)** (c82e9fc)
- **update lockfile** (123b180)
- **Version Packages (#101)** (02e5a1e)
- **Change .env to .env.local in Getting Started guide (#87)** (5b8d9d6)
- **[chore](Doc) Typo (#99)** (bd1a41d)
- **hugging face links fixed (#105)** (8af8e54)
- **examples/sveltekit-openai: set package to private (#83)** (d742996)
- **Even easier** (840954c)
- **Better readme snippet** (93d68c0)
- **Version Packages (#76)** (fe367b6)
- **Use `handleChainEnd` (#75)** (be90740)
- **docs/getting-started: slight cleanup (#70)** (1dc2a11)
- **getting-started formatted and improvements** (ca9c9ef)
- **docs/getting-started: slight cleanup (#57)** (52799d0)
- **Update README.md** (ef4b43b)
- **Version Packages (#50)** (afe9f0a)
- **Improve JSDoc for the `body` option (#51)** (1d9c643)
- **Rename to just `ai` (#49)** (095de43)
- **Version Packages (#48)** (6d52ef1)
- **Version Packages (#46)** (f7b1437)
- **Throw error when provided AI response doesn't have the 2xx status code (#45)** (c1f4a91)
- **Version Packages (#44)** (d383825)
- **Improve API typings (#43)** (ea4e66a)
- **Version Packages (#42)** (6e6d6f5)
- **Version Packages (#40)** (0e9dfa2)
- **Svelte hooks (#39)** (56f9537)
- **Document langchain example** (90d940b)
- **Refactor examples** (5a02323)
- **Version Packages (#37)** (ff50225)
- **Create `/react` sub-package (#38)** (78477d3)
- **Remove docs site** (6e28253)
- **Update README.md** (f6d08ad)
- **Update langchain example to match docs** (e0fe361)
- **Version Packages (#36)** (b398a25)
- **Optimize callbacks TransformStream (#34)** (2c6fa04)
- **Version Packages (#31)** (8a1bb24)
- **Eliminate JSON stringify/parsing in responses (#33)** (bcb6b80)
- **Run prettier** (17107df)
- **Merge #28 and #29 into main (#32)** (bffc7d2)
- **Refactor AIStream (#27)** (fdfef52)
- **Break unneeded recursive promise chain (#26)** (3c170b3)
- **Version Packages (#22)** (ba9e274)
- **update docs images** (a2db07b)
- **Update guides** (dd1c21f)
- **Remove anthropic until we actually do it** (5187fb4)
- **Improve reference documentation** (6f7b43a)
- **Tweak anthropic (#23)** (e95a9b2)

### Tests
- **test: Add tests for `OpenAIStream` (#108)** (ad54c79)

### Docs
- **docs: add Next.js Pages Router guide (#237)** (c530c46)
- **docs: Add vue.js docs to docs/index and API reference (#238)** (6d46aaa)
- **docs: add Next.js App Router guide (#234)** (5174ee8)
- **docs: link cards in docs/index** (ef21a20)
- **docs: complete the backpressure-and-cancellation code snippets (#128)** (7e03f2d)
- **docs: Fixed misspelled top-level domain for Hugging Face Hub (#146)** (fdb89b5)
- **docs: add labels to code snippets (#114)** (db0dc27)
- **docs: fix broken link (#103)** (87b36c6)

### Chore
- **Refactor(streams): improve type safety and readability (#139)** (85b4bf9)
- **style: adjust prettier style (#149)** (eeb4e50)
- **chore: added meta data in package.json (#148)** (8840704)
- **chore: fix lockfile** (2c76c74)

_Recap by [Repo Wrapped](https://repowrapped.com/gh/vercel/ai?utm_source=github-action)._