deps: bump ai from 5.0.228 to 7.0.84 - #140
Conversation
Bumps [ai](https://github.com/vercel/ai/tree/HEAD/packages/ai) from 5.0.228 to 7.0.84. - [Release notes](https://github.com/vercel/ai/releases) - [Changelog](https://github.com/vercel/ai/blob/main/packages/ai/CHANGELOG.md) - [Commits](https://github.com/vercel/ai/commits/ai@7.0.84/packages/ai) --- updated-dependencies: - dependency-name: ai dependency-version: 7.0.84 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Supersedes the three separate Dependabot PRs for `ai`, `@ai-sdk/anthropic` and
`@ai-sdk/google`. They cannot land one at a time: `ai` v7 speaks
LanguageModelV4 and the v2 providers do not, so each PR alone fails while all
three together pass.
ai ^5.0.228 -> ^7.0.88 (#140)
@ai-sdk/anthropic ^2.0.93 -> ^4.0.46 (#142)
@ai-sdk/google ^2.0.86 -> ^4.0.60 (#143)
Four breaking changes, in two layers.
The harness reads usage. v7 moved the cache breakdown into `inputTokenDetails`
and redefined `inputTokens` as the *total* prompt count, cached reads included.
TokenUsage documents inputTokens and cachedInputTokens as disjoint and
priceUsage adds them, so a mechanical rename would have billed every cache read
twice — quietly, in a tool whose output is cost. `noCacheTokens` is the figure
v5's `inputTokens` used to carry; where a provider omits it we fall back to
total-minus-cached rather than to zero, so the invariant holds either way.
The test's scripted model needed three: MockLanguageModelV2 is now
MockLanguageModelV4 (the providers implement V4, so the mock should exercise the
same path), usage is two nested breakdowns rather than flat counters, and
finishReason is `{ unified, raw }` rather than a bare string. That last one is
why the first fix attempt still failed with no error: the model returned
successfully, the string finish reason simply meant no tool calls were seen, and
every conformance clause about tool calls went quiet rather than red.
`npm run check` passes: 290 files, 7554 tests.
|
Superseded by #144 — closing. This upgrade could not land on its own. The one worth knowing about: v7 redefined
|
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
Bumps ai from 5.0.228 to 7.0.84.
Release notes
Sourced from ai's releases.
Changelog
Sourced from ai's changelog.
... (truncated)
Commits
0a0f271Version Packages (#19857)e604532fix: prevent smoothStream custom RegExp chunking from merging chunks or loopi...6669d69fix: include parsed structured output in streamText end callbacks (#17717)a6463cafix: ToolLoopAgent types reject supported tool approval secrets (#19883)9a68261feat(open-responses): support experimental extension codecs (#18900)0379422Version Packages (#19778)8dd86a9fix: reject stale persisted tool inputs without blocking unparsed or unavaila...fda13b3fix: continue chats automatically after denied tool approvals (#19771)ce6849afix(ai): handle stitchable stream cancellation before an inner stream is regi...957146cfix: UI message stream end callbacks cannot distinguish failed responses from...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)