You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At runtime: yes in principle (branch on model.specificationVersion and implement two conversion pipelines: v2 + v3).
In practice (types + packaging): it’s messy to do in a single TS surface area because importing v3 types breaks v2 installs and vice‑versa. The clean approach is separate adapters/entrypoints (e.g. @kernl-sdk/ai/v2/* and @kernl-sdk/ai/v3/*, or separate packages) so users pick one AI SDK major line and don’t accidentally mix them.
AI SDK compatibility inventory (for
@kernl-sdk/ai)Supported / intended (today): AI SDK “v3 beta” line
@ai-sdk/provider@3.0.0-beta.*(this is what@kernl-sdk/aipeers on)@ai-sdk/openai@3.0.0-beta.*,@ai-sdk/anthropic@3.0.0-beta.*, etc.zod^3.25.76 || ^4.1.8→ Zod v4 is fineNot supported: AI SDK “v1” line (e.g.
@ai-sdk/openai@1.x,@ai-sdk/anthropic@1.x)@ai-sdk/provider@1.1.3and peerzod@^3.0.0TS2589/tscOOMNot supported (today): AI SDK “v2” line (
@ai-sdk/provider@2.x+ provider packages@ai-sdk/*@2.x)LanguageModelV3*message/stream/tool types and conversions, so v2 won’t line up cleanly.Could we support both v2 and v3 in one adapter?
model.specificationVersionand implement two conversion pipelines: v2 + v3).@kernl-sdk/ai/v2/*and@kernl-sdk/ai/v3/*, or separate packages) so users pick one AI SDK major line and don’t accidentally mix them.