# What changed in @ai-sdk/groq

> 11 changes in @ai-sdk/groq 3 to 4 from its official release notes, upgrade guides and advisories: 1 security, 1 new APIs and options. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/@ai-sdk/groq/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @ai-sdk/groq 4

### Security

- @ai-sdk/provider-utils has an Uncontrolled Resource Consumption issue (4.0.33) — [security advisory](https://github.com/advisories/GHSA-866G-F22W-33X8)

### New APIs and options

- The reasoning level type now includes max. Third-party providers and consumers with exhaustive mappings must handle the new value; existing reasoning levels remain accepted. (4.0.56) — [release notes](https://github.com/vercel/ai/releases/tag/%40ai-sdk/groq%404.0.56)

### Behavior and default changes

- Browser search tools are kept for unknown model IDs instead of being dropped with a warning; known models without browser search remain excluded. (2.0.58, 3.0.73, 4.0.60) — [release notes](https://github.com/vercel/ai/releases/tag/%40ai-sdk/groq%404.0.60), [release notes](https://github.com/vercel/ai/releases/tag/%40ai-sdk/groq%403.0.73), [release notes](https://github.com/vercel/ai/releases/tag/%40ai-sdk/groq%402.0.58)

### Fixes and other changes

- Uses the JSON response tool for structured outputs when tool calling is enabled. (4.0.55) — [release notes](https://github.com/vercel/ai/releases/tag/%40ai-sdk/groq%404.0.55)
- The User-Agent header is now standards-compliant. (4.0.52) — [release notes](https://github.com/vercel/ai/releases/tag/%40ai-sdk/groq%404.0.52)
- Fixes streamed tool calls with missing, blank, or repeated IDs. (4.0.51) — [release notes](https://github.com/vercel/ai/releases/tag/%40ai-sdk/groq%404.0.51)
- Non-streaming responses with no choices now return a typed error. (4.0.47) — [release notes](https://github.com/vercel/ai/releases/tag/%40ai-sdk/groq%404.0.47)
- Disables reasoning for supported Groq models when top-level reasoning is set to none. (4.0.31) — [release notes](https://github.com/vercel/ai/releases/tag/%40ai-sdk/groq%404.0.31)
- Prevents negative text output token counts when providers report reasoning tokens; Perplexity reasoning tokens are treated separately from completion tokens. (3.0.62, 4.0.31) — [release notes](https://github.com/vercel/ai/releases/tag/%40ai-sdk/groq%404.0.31), [release notes](https://github.com/vercel/ai/releases/tag/%40ai-sdk/groq%403.0.62)
- Fixes handling of empty string tool call IDs. (4.0.29) — [release notes](https://github.com/vercel/ai/releases/tag/%40ai-sdk/groq%404.0.29)

## @ai-sdk/groq 3

### Fixes and other changes

- Reasoning streams are preserved across empty tool-call deltas. (3.0.66) — [release notes](https://github.com/vercel/ai/releases/tag/%40ai-sdk/groq%403.0.66)
