-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Comparing changes
Open a pull request
base repository: vercel/ai
base: ai@6.0.83
head repository: vercel/ai
compare: ai@6.0.84
- 14 commits
- 155 files changed
- 7 contributors
Commits on Feb 12, 2026
-
chore(examples): remove obsolete useSearchGrounding in google examples (
#12494) ## Background `useSearchGrounding` is an obsolete provider option for the Google (and Vertex) providers that was deprecated a long time ago. v5 migration guides already include documentation how to migrate away from it, but several examples and e2e tests still referenced it. ## Summary Replaced all `useSearchGrounding` providerOption usages with the current `googleSearch` tool API. The only remaining `useSearchGrounding` reference is in the v5 migration guide, which is correct since it documents historical behavior. ## Manual Verification N/A — example-only changes, verified via `pnpm type-check:full` and running the examples. ## Checklist - [x] Tests have been added / updated (for bug fixes / features) - [ ] Documentation has been added / updated (for bug fixes / features) - [x] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [x] I have reviewed this pull request (self-review) ## Future Work N/A ## Related Issues Fixes #12438
Configuration menu - View commit details
-
Copy full SHA for 2d4355d - Browse repository at this point
Copy the full SHA 2d4355dView commit details -
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
vercel-ai-sdk[bot] authoredFeb 12, 2026 Configuration menu - View commit details
-
Copy full SHA for 78688ef - Browse repository at this point
Copy the full SHA 78688efView commit details -
test(provider/gladia): migrate tests to fixture-based pattern (#12490)
## background gladia tests used inline `prepareJsonResponse` with hand-constructed mock data. this migrates to the fixture-based pattern used across other providers ## summary - add 3 fixture files for gladia's 3-step API flow (upload, initiate, poll result) - rewrite tests to load fixtures from `__fixtures__/` directory - add full snapshot test for `doGenerate` response - add standalone response headers and response metadata tests - all 5 original test cases preserved + 1 new snapshot test ## verification <details> <summary>test output</summary> ``` ✓ src/gladia-transcription-model.test.ts (6 tests) 35ms Test Files 2 passed (2) Tests 7 passed (7) ``` </details>Configuration menu - View commit details
-
Copy full SHA for 6bc4bce - Browse repository at this point
Copy the full SHA 6bc4bceView commit details -
fix(vertex): add fallback for providerOptions key (#12403)
## Background multi step tool calls fail because the `thoughtSignature` gets lost due to a key mismatch in providerOptions. if the `thoughtSignature` is passed under the google key, the vertex provider silently drops it. the api then rejects the request and we see the errors as observed in #12351 ## Summary fallback check to see if `vertex` key doesn't have a `thoughtSignature`, we check if it's passed within the google key ## Manual Verification verified via the repro code given in the original issue, which is resolved after the fix ## Checklist - [x] Tests have been added / updated (for bug fixes / features) - [ ] Documentation has been added / updated (for bug fixes / features) - [x] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [x] I have reviewed this pull request (self-review) ## Related Issues fixes #12351
Configuration menu - View commit details
-
Copy full SHA for 051361b - Browse repository at this point
Copy the full SHA 051361bView commit details -
chore(examples): update vulnerable mcp dependency version (#12469)
## Background reported in #12326 but needed some extra changes ## Summary updated dependency version and pnpm lock file
Configuration menu - View commit details
-
Copy full SHA for 4fc66bc - Browse repository at this point
Copy the full SHA 4fc66bcView commit details -
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @ai-sdk/google@3.0.27 ### Patch Changes - 051361b: fix(vertex): add fallback for providerOptions keyname ## @ai-sdk/google-vertex@4.0.55 ### Patch Changes - Updated dependencies [051361b] - @ai-sdk/google@3.0.27 Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
vercel-ai-sdk[bot] authoredFeb 12, 2026 Configuration menu - View commit details
-
Copy full SHA for 924250c - Browse repository at this point
Copy the full SHA 924250cView commit details -
docs: use
presentImagesin single image generation example that was……n't using it yet (#12498) ## Background The `registry/generate-image.ts` example was the only image-generating example in `ai-functions` that manually wrote images with `fs.writeFileSync` instead of using the shared `presentImages` helper. ## Summary Replaced the manual `fs.writeFileSync` + `console.log` with a call to `presentImages([image])`, matching other image generation examples.
Configuration menu - View commit details
-
Copy full SHA for fdf784f - Browse repository at this point
Copy the full SHA fdf784fView commit details -
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
vercel-ai-sdk[bot] authoredFeb 12, 2026 Configuration menu - View commit details
-
Copy full SHA for e73beb8 - Browse repository at this point
Copy the full SHA e73beb8View commit details -
feat(provider/google-vertex): allow using Gemini image models with `g…
…enerateImage` (#12502) ## Background Follow-up to #12252 (which added Gemini image generation to the `google` provider). This wasn't yet wired up for the `google-vertex` provider. ## Summary - Adds Gemini image model support to `google-vertex`'s `generateImage()`. When a `gemini-*` model ID is detected, the image model internally delegates to `GoogleGenerativeAILanguageModel` with `responseModalities: ['IMAGE']`, matching the approach used in the `google` provider. Existing Imagen model behavior is unchanged. - Includes docs for this new `generateImage` capability for `google-vertex` - Also improves provider options typing in both `google` and `google-vertex` image models to use `satisfies GoogleLanguageModelOptions` ## Manual Verification Ran `google-vertex-gemini-image.ts` and `google-vertex-gemini-editing.ts` examples against Vertex AI with real credentials. Both image generation and image editing produce correct results. ## Checklist - [x] Tests have been added / updated (for bug fixes / features) - [x] Documentation has been added / updated (for bug fixes / features) - [x] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [x] I have reviewed this pull request (self-review) ## Future Work N/A ## Related Issues Fixes #12452
Configuration menu - View commit details
-
Copy full SHA for 5a307f5 - Browse repository at this point
Copy the full SHA 5a307f5View commit details -
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @ai-sdk/google@3.0.28 ### Patch Changes - 5a307f5: feat(provider/google-vertex): allow using Gemini image models with `generateImage` ## @ai-sdk/google-vertex@4.0.56 ### Patch Changes - 5a307f5: feat(provider/google-vertex): allow using Gemini image models with `generateImage` - Updated dependencies [5a307f5] - @ai-sdk/google@3.0.28 Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
vercel-ai-sdk[bot] authoredFeb 12, 2026 Configuration menu - View commit details
-
Copy full SHA for 17fd267 - Browse repository at this point
Copy the full SHA 17fd267View commit details -
refactor(provider/amazon-bedrock): finish fixture migration for doGen…
…erate tests (#12503) ## background amazon-bedrock was partially migrated to the fixture-based test pattern - doStream and some doGenerate tests already used `prepareJsonFixtureResponse` / `prepareChunksFixtureResponse`, but the doGenerate section still had an inline `prepareJsonResponse` helper used by ~29 tests ## summary - remove 2 duplicate tests (`should extract text response` and `should extract usage`) that were identical to existing fixture-based tests in the `describe('text')` block - replace `prepareJsonResponse({})` calls with `prepareJsonFixtureResponse('bedrock-text')` for tests that only check request body/headers - replace `prepareJsonResponse({...specific fields...})` calls with direct `server.urls[generateUrl].response` assignment for tests that need specific response content - delete the `prepareJsonResponse` helper function and unused `BedrockReasoningContentBlock` / `BedrockRedactedReasoningContentBlock` imports no new fixtures were needed - all existing fixtures were already recorded from real API calls ## verification - `grep -c prepareJsonResponse` returns 0 - test count: 103 → 101 (2 duplicates removed) - 290/290 tests pass
Configuration menu - View commit details
-
Copy full SHA for 244bee8 - Browse repository at this point
Copy the full SHA 244bee8View commit details -
docs(contribting): correct provider method names for v3 spec and clar…
…ity (#12507) ## Background The contributing docs were outdated, referring to v2 provider spec. ## Summary Updated to v3 spec requirements. Also included a note to focus on clarity for developers and agents - higher priority than brevity.
Configuration menu - View commit details
-
Copy full SHA for ee508b4 - Browse repository at this point
Copy the full SHA ee508b4View commit details -
fix/unbounded download dos (#12445)
- Replace unbounded `arrayBuffer()`/`blob()` calls in `download()` and `downloadBlob()` with streaming reads that enforce a **2 GiB default size limit** - Add `abortSignal` passthrough from callers (`transcribe`, `generateVideo`) to `fetch()` - Check `Content-Length` header for early rejection before reading body - Track bytes incrementally via `ReadableStream.getReader()`, abort with `DownloadError` when limit exceeded - Expose configurable `download` parameter on `transcribe()` and `experimental_generateVideo()` (instead of adding a new `maxDownloadSize` argument) — keeps download config separate from API function signatures - Export `createDownload({ maxBytes })` factory from `ai` for custom size limits closes #9481 / addresses #9481 (comment) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>Configuration menu - View commit details
-
Copy full SHA for 4024a3a - Browse repository at this point
Copy the full SHA 4024a3aView commit details -
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## ai@6.0.84 ### Patch Changes - 4024a3a: security: prevent unbounded memory growth in download functions The `download()` and `downloadBlob()` functions now enforce a default 2 GiB size limit when downloading from user-provided URLs. Downloads that exceed this limit are aborted with a `DownloadError` instead of consuming unbounded memory and crashing the process. The `abortSignal` parameter is now passed through to `fetch()` in all download call sites. Added `download` option to `transcribe()` and `experimental_generateVideo()` for providing a custom download function. Use the new `createDownload({ maxBytes })` factory to configure download size limits. - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 - @ai-sdk/gateway@3.0.44 ## @ai-sdk/alibaba@1.0.4 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 - @ai-sdk/openai-compatible@2.0.30 ## @ai-sdk/amazon-bedrock@4.0.59 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 - @ai-sdk/anthropic@3.0.43 ## @ai-sdk/angular@2.0.85 ### Patch Changes - Updated dependencies [4024a3a] - ai@6.0.84 - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/anthropic@3.0.43 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/assemblyai@2.0.20 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/azure@3.0.29 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 - @ai-sdk/openai@3.0.28 ## @ai-sdk/baseten@1.0.33 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 - @ai-sdk/openai-compatible@2.0.30 ## @ai-sdk/black-forest-labs@1.0.20 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/cerebras@2.0.33 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 - @ai-sdk/openai-compatible@2.0.30 ## @ai-sdk/cohere@3.0.21 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/deepgram@2.0.20 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/deepinfra@2.0.34 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 - @ai-sdk/openai-compatible@2.0.30 ## @ai-sdk/deepseek@2.0.20 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/elevenlabs@2.0.20 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/fal@2.0.21 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/fireworks@2.0.34 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 - @ai-sdk/openai-compatible@2.0.30 ## @ai-sdk/gateway@3.0.44 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/gladia@2.0.20 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/google@3.0.29 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/google-vertex@4.0.57 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 - @ai-sdk/anthropic@3.0.43 - @ai-sdk/google@3.0.29 ## @ai-sdk/groq@3.0.24 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/huggingface@1.0.32 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 - @ai-sdk/openai-compatible@2.0.30 ## @ai-sdk/hume@2.0.20 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/klingai@3.0.3 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/langchain@2.0.90 ### Patch Changes - Updated dependencies [4024a3a] - ai@6.0.84 ## @ai-sdk/llamaindex@2.0.84 ### Patch Changes - Updated dependencies [4024a3a] - ai@6.0.84 ## @ai-sdk/lmnt@2.0.20 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/luma@2.0.20 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/mcp@1.0.21 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/mistral@3.0.20 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/moonshotai@2.0.5 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 - @ai-sdk/openai-compatible@2.0.30 ## @ai-sdk/open-responses@1.0.2 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/openai@3.0.28 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/openai-compatible@2.0.30 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/perplexity@3.0.19 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/prodia@1.0.16 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/provider-utils@4.0.15 ### Patch Changes - 4024a3a: security: prevent unbounded memory growth in download functions The `download()` and `downloadBlob()` functions now enforce a default 2 GiB size limit when downloading from user-provided URLs. Downloads that exceed this limit are aborted with a `DownloadError` instead of consuming unbounded memory and crashing the process. The `abortSignal` parameter is now passed through to `fetch()` in all download call sites. Added `download` option to `transcribe()` and `experimental_generateVideo()` for providing a custom download function. Use the new `createDownload({ maxBytes })` factory to configure download size limits. ## @ai-sdk/react@3.0.86 ### Patch Changes - Updated dependencies [4024a3a] - ai@6.0.84 - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/replicate@2.0.20 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/revai@2.0.20 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/rsc@2.0.84 ### Patch Changes - Updated dependencies [4024a3a] - ai@6.0.84 - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/svelte@4.0.84 ### Patch Changes - Updated dependencies [4024a3a] - ai@6.0.84 - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/togetherai@2.0.33 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 - @ai-sdk/openai-compatible@2.0.30 ## @ai-sdk/valibot@2.0.16 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/vercel@2.0.32 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 - @ai-sdk/openai-compatible@2.0.30 ## @ai-sdk/vue@3.0.84 ### Patch Changes - Updated dependencies [4024a3a] - ai@6.0.84 - @ai-sdk/provider-utils@4.0.15 ## @ai-sdk/xai@3.0.55 ### Patch Changes - Updated dependencies [4024a3a] - @ai-sdk/provider-utils@4.0.15 - @ai-sdk/openai-compatible@2.0.30 Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
vercel-ai-sdk[bot] authoredFeb 12, 2026 Configuration menu - View commit details
-
Copy full SHA for 7ef42ca - Browse repository at this point
Copy the full SHA 7ef42caView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff ai@6.0.83...ai@6.0.84