@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.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
@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.
可执行摘要
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 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- 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.