@ai-sdk/zai@3.0.44
@ai-sdk/zai version 3.0.44 adds support for promises and callbacks for API keys and tokens, and makes the experimental OpenAI Live WebSocket configuration async.
Why this signal matters
@ai-sdk/zai@3.0.44 introduces support for promises alongside synchronous and asynchronous callbacks within provider API key and token configurations. This allows credentials to be resolved per authenticated request while maintaining current authentication mechanisms and synchronous credential serialization. Additionally, the experimental OpenAI Live getServerWebSocketConfig() method now returns a promise that must be awaited before accessing connection settings. Dependency updates include @ai-sdk/openai-compatible@3.0.82, @ai-sdk/provider-utils@5.0.72, and @ai-sdk/provider@4.0.35.
Actionable summary
Update in @ai-sdk/zai@3.0.44 supports promises and sync/async callbacks for provider API keys and tokens, resolving credentials per request. The experimental getServerWebSocketConfig() method on OpenAI Live is now asynchronous and must be awaited.
- Agent usefulness
- 77/100
- Confidence
- 96%
- Canonical data
- JSON + Markdown
What builders should check
- Await the result of the experimental OpenAI Live getServerWebSocketConfig() method before using connection settings.
- Optionally update provider API key and token settings to use promises or async callbacks if dynamic per-request credential resolution is needed.