Skip to content

fix(provider): fix v4 spec to not use shared v3 types#13482

Merged
gr2m merged 3 commits intomainfrom
fix-v4-spec-using-v3-provider-metadata
Mar 16, 2026
Merged

fix(provider): fix v4 spec to not use shared v3 types#13482
gr2m merged 3 commits intomainfrom
fix-v4-spec-using-v3-provider-metadata

Conversation

@felixarntz
Copy link
Collaborator

Background

The v4 language model spec types were incorrectly importing and using shared v3 types (SharedV3ProviderOptions, SharedV3ProviderMetadata, SharedV3Headers, SharedV3Warning) instead of their v4 equivalents. This meant the v4 spec was not self-contained and depended on v3 shared types.

Initially pointed out by @lgrammel in #13352 (comment).

Summary

Updated all v4 language model spec files to import from shared/v4 instead of shared/v3, using the correct SharedV4* types throughout.

Manual Verification

N/A — type-only change, verified by successful build/type-check.

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Future Work

N/A

Related Issues

N/A

@tigent tigent bot added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label bug Something isn't working as documented maintenance CI, internal documentation, automations, etc labels Mar 16, 2026
@felixarntz
Copy link
Collaborator Author

felixarntz commented Mar 16, 2026

@aayush-kapoor @gr2m The CI failure here is unrelated to these changes, likely occurring due to the addition of Node 24 in CI, see #13358. I believe it's a test instability, so maybe that's why it worked upon merge of that PR, but now it's causing failures.

See #13483

Copy link
Collaborator

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ci errors are fixed now

@gr2m gr2m merged commit 5c2a5a2 into main Mar 16, 2026
19 checks passed
@gr2m gr2m deleted the fix-v4-spec-using-v3-provider-metadata branch March 16, 2026 19:14
@vercel-ai-sdk
Copy link
Contributor

vercel-ai-sdk bot commented Mar 16, 2026

🚀 Published in:

Package Version
ai 7.0.0-beta.18
@ai-sdk/alibaba 2.0.0-beta.5
@ai-sdk/amazon-bedrock 5.0.0-beta.5
@ai-sdk/angular 3.0.0-beta.18
@ai-sdk/anthropic 4.0.0-beta.5
@ai-sdk/assemblyai 3.0.0-beta.3
@ai-sdk/azure 4.0.0-beta.7
@ai-sdk/baseten 2.0.0-beta.4
@ai-sdk/black-forest-labs 2.0.0-beta.2
@ai-sdk/bytedance 2.0.0-beta.2
@ai-sdk/cerebras 3.0.0-beta.4
@ai-sdk/cohere 4.0.0-beta.2
@ai-sdk/deepgram 3.0.0-beta.2
@ai-sdk/deepinfra 3.0.0-beta.4
@ai-sdk/deepseek 3.0.0-beta.3
@ai-sdk/devtools 1.0.0-beta.1
@ai-sdk/elevenlabs 3.0.0-beta.2
@ai-sdk/fal 3.0.0-beta.2
@ai-sdk/fireworks 3.0.0-beta.4
@ai-sdk/gateway 4.0.0-beta.11
@ai-sdk/gladia 3.0.0-beta.2
@ai-sdk/google 4.0.0-beta.10
@ai-sdk/google-vertex 5.0.0-beta.13
@ai-sdk/groq 4.0.0-beta.3
@ai-sdk/huggingface 2.0.0-beta.4
@ai-sdk/hume 3.0.0-beta.2
@ai-sdk/klingai 4.0.0-beta.3
@ai-sdk/langchain 3.0.0-beta.18
@ai-sdk/llamaindex 3.0.0-beta.18
@ai-sdk/lmnt 3.0.0-beta.2
@ai-sdk/luma 3.0.0-beta.2
@ai-sdk/mcp 2.0.0-beta.4
@ai-sdk/mistral 4.0.0-beta.2
@ai-sdk/moonshotai 3.0.0-beta.4
@ai-sdk/open-responses 2.0.0-beta.3
@ai-sdk/openai 4.0.0-beta.7
@ai-sdk/openai-compatible 3.0.0-beta.4
@ai-sdk/perplexity 4.0.0-beta.3
@ai-sdk/prodia 2.0.0-beta.3
@ai-sdk/provider 4.0.0-beta.1
@ai-sdk/provider-utils 5.0.0-beta.2
@ai-sdk/react 4.0.0-beta.18
@ai-sdk/replicate 3.0.0-beta.3
@ai-sdk/revai 3.0.0-beta.3
@ai-sdk/rsc 3.0.0-beta.19
@ai-sdk/svelte 5.0.0-beta.18
@ai-sdk/togetherai 3.0.0-beta.4
@ai-sdk/valibot 3.0.0-beta.2
@ai-sdk/vercel 3.0.0-beta.4
@ai-sdk/vue 4.0.0-beta.18
@ai-sdk/xai 4.0.0-beta.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label bug Something isn't working as documented maintenance CI, internal documentation, automations, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants