Patch Changes
-
b3976a2: Add workflow serialization support to all provider models.
@ai-sdk/provider-utils: NewserializeModel()helper that extracts only serializable properties from a model instance, filtering out functions and objects containing functions. Third-party provider authors can use this to add workflow support to their own models.All providers:
headersis now optional in provider config types. This is non-breaking — existing code that passesheaderscontinues to work. Custom provider implementations that construct model configs manually can now omitheaders, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.All provider model classes now include
WORKFLOW_SERIALIZEandWORKFLOW_DESERIALIZEstatic methods, enabling them to cross workflow step boundaries without serialization errors. -
ff5eba1: feat: roll
image-*tool output types into their equivalentfile-*types -
Updated dependencies [b3976a2]
-
Updated dependencies [ff5eba1]
- @ai-sdk/provider-utils@5.0.0-beta.20
- @ai-sdk/anthropic@4.0.0-beta.28
- @ai-sdk/provider@4.0.0-beta.12