Skip to content

Commit 86a4e53

Browse files
chore(deps): bump ai from 5.0.0 to 5.0.52 in /packages/sdk/server-ai/examples/vercel-ai (#988)
Bumps [ai](https://github.com/vercel/ai) from 5.0.0 to 5.0.52. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vercel/ai/commit/63d5f669098343a49173d788fe1490127e882bd1"><code>63d5f66</code></a> Version Packages (<a href="https://redirect.github.com/vercel/ai/issues/8895">#8895</a>)</li> <li><a href="https://github.com/vercel/ai/commit/930399bb9839a8baf3d349614106d78268775eed"><code>930399b</code></a> Backport: fix(ai): download files when intermediate file cannot be downloaded...</li> <li><a href="https://github.com/vercel/ai/commit/7ca78f19a51859de09171daa3b0cefcc9df90a16"><code>7ca78f1</code></a> Backport: feat(provider/gateway): Add new Qwen models to Gateway model string...</li> <li><a href="https://github.com/vercel/ai/commit/1cfc209a5f9f281565538f2880f9c6278ca6bf04"><code>1cfc209</code></a> Backport: feat(provider/openai): <code>OpenAILanguageModelOptions</code> type (<a href="https://redirect.github.com/vercel/ai/issues/8858">#8858</a>)</li> <li><a href="https://github.com/vercel/ai/commit/347b7ecce9953ae427e7fcf5b0441a63a3d44431"><code>347b7ec</code></a> ci: rename <code>v5.0</code> branch to <code>release-v*</code></li> <li><a href="https://github.com/vercel/ai/commit/85909a9f6448c7e6eb52d780abcca4f96679e719"><code>85909a9</code></a> Backport: chore(ai): update test message (<a href="https://redirect.github.com/vercel/ai/issues/8875">#8875</a>)</li> <li><a href="https://github.com/vercel/ai/commit/c56822dd81d5d70bcd5ef230a875f96a224849a4"><code>c56822d</code></a> Backport: fix(ai): update <code>uiMessageChunkSchema</code> to satisfy the `UIMessageChu...</li> <li><a href="https://github.com/vercel/ai/commit/1461adf5841cc3f164482fdff72b66b4b22bf866"><code>1461adf</code></a> Backport: chore(examples): remove redundant OpenAI reasoning examples (<a href="https://redirect.github.com/vercel/ai/issues/8871">#8871</a>)</li> <li><a href="https://github.com/vercel/ai/commit/6bd07df02d9f954b389e44da128fc6d1358462d9"><code>6bd07df</code></a> Version Packages (<a href="https://redirect.github.com/vercel/ai/issues/8853">#8853</a>)</li> <li><a href="https://github.com/vercel/ai/commit/a45d61aa32f2f319254c5e660731085bcd30f273"><code>a45d61a</code></a> ci(release): remove incorrect changeset bump for <code>@ai-sdk/baseten</code></li> <li>Additional commits viewable in <a href="https://github.com/vercel/ai/compare/[email protected]@5.0.52">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ai&package-manager=npm_and_yarn&previous-version=5.0.0&new-version=5.0.52)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/launchdarkly/js-core/network/alerts). </details> <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Bumps `ai` to 5.0.52 and updates `vercel-ai` example to pass a default `messages` array to `generateText`/`streamText`. > > - **Dependencies**: > - Bump `ai` from `5.0.0` to `5.0.52` in `packages/sdk/server-ai/examples/vercel-ai/package.json`. > - **Examples**: > - In `packages/sdk/server-ai/examples/vercel-ai/src/index.ts`, update calls to `generateText` and `streamText` to spread `vercelConfig` and ensure `messages: vercelConfig.messages ?? []`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 3da3c22. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Steven Zhang <[email protected]>
1 parent abc89e7 commit 86a4e53

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/sdk/server-ai/examples/vercel-ai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@launchdarkly/node-server-sdk": "^9.7.1",
2626
"@launchdarkly/server-sdk-ai": "^0.15.0",
2727
"@launchdarkly/server-sdk-ai-vercel": "^0.4.0",
28-
"ai": "5.0.0",
28+
"ai": "5.0.52",
2929
"zod": "^3.23.8"
3030
},
3131
"devDependencies": {

packages/sdk/server-ai/examples/vercel-ai/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function main() {
6868
// Call the model and track metrics for the ai config
6969
const result = await aiConfig.tracker.trackMetricsOf(
7070
VercelProvider.getAIMetricsFromResponse,
71-
() => generateText(vercelConfig),
71+
() => generateText({ ...vercelConfig, messages: vercelConfig.messages ?? [] }),
7272
);
7373

7474
console.log('Response:', result.text);
@@ -92,7 +92,7 @@ async function main() {
9292

9393
// Stream is returned immediately (synchronously), metrics tracked in background
9494
const streamResult = aiConfig.tracker.trackStreamMetricsOf(
95-
() => streamText(vercelConfig),
95+
() => streamText({ ...vercelConfig, messages: vercelConfig.messages ?? [] }),
9696
VercelProvider.getAIMetricsFromStream,
9797
);
9898

0 commit comments

Comments
 (0)