Repository navigation
chore(deps): upgrade AI SDK to v7 and provider packages - #13
Merged
Merged
Conversation
Bump ai 6.0.300 -> 7.0.127 and the matching provider majors in apps/dokploy and packages/server: @ai-sdk/anthropic 4.0.71, @ai-sdk/azure 4.0.90, @ai-sdk/cohere 4.0.54, @ai-sdk/deepinfra 3.0.62, @ai-sdk/mistral 4.0.56, @ai-sdk/openai 4.0.83, @ai-sdk/openai-compatible 3.0.62 and ai-sdk-ollama 4.4.0. No source changes are needed: the code already uses `output` with `Output.object`, plain `prompt` strings and only reads `result.text` and `result.output`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Dependency-only upgrade in
apps/dokployandpackages/server(same versions in both, resolved with a 3-day minimum release age):ai@ai-sdk/anthropic@ai-sdk/azure@ai-sdk/cohere@ai-sdk/deepinfra@ai-sdk/mistral@ai-sdk/openai@ai-sdk/openai-compatibleai-sdk-ollamaCompatibility of the set: every provider and
airesolve to a single shared@ai-sdk/provider@4.0.21/@ai-sdk/provider-utils@5.0.53;ai-sdk-ollama@4.4.0haspeerDependencies.ai: ^7.0.103; all@ai-sdk/*peer onzod ^3.25.76 || ^4.1.8(we use zod 4.6). New transitive deps:@workflow/serde,undici7 insideprovider-utils;aino longer depends on@opentelemetry/api.No source changes were needed.
Release notes / migration guide (v6 -> v7)
Checked the official 6 -> 7 migration guide against the three call sites (
select-ai-provider.ts,services/ai.ts,routers/ai.ts):"type": "module"with ESM esbuild output.experimental_outputremoved: we already useoutput: Output.object(...)andresult.output.system->instructions, system messages inpromptrejected by default: we only pass a plainpromptstring.usage/content/toolCallsnow aggregate all steps,finalStepadded: we only readresult.textandresult.output, single step.@ai-sdk/otel, lifecycle callback renames: not used.providerMetadata.anthropic.cacheCreationInputTokensremoved: not used.The codemod was not needed: none of the patterns it rewrites appear in the code.
Verification
bun run typecheck: all 4 workspaces pass.__test__/ai/*and__test__/placement/deploy-target-boundary.test.ts: 25/25 pass.apps/dokploysuite: 2055 passed; failures are only*.real.test.ts(need Docker) plusbetter-auth-schema-compatandcloud-queue-availabilitytimeouts, which fail the same way onAgentHits-Devwithout this change.bunx biome checkon the changed manifests: clean.aiand every provider as ESM.selectAIProviderfor all 14 provider branches (OpenAI, Azure, Azure/v1, Anthropic, Cohere, Perplexity, Mistral, Ollama, DeepInfra, Gemini, OpenRouter, Z.ai, MiniMax, custom) withfetchintercepted, callinggenerateTextplain (as in test connection) and withOutput.objectusing thesuggestVariantsschema. Request URL, auth headers, body keys, response format type and the parsedoutputwere identical on v6 and v7; the only difference is the modelspecificationVersion(v3 -> v4).next build(left to CI).Manual check on dev (AI settings in the panel)
🤖 Generated with Claude Code