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
fix(node): Preserve synchronous return behavior for streamText and other methods for AI (#17580)
Vercel AI integration was incorrectly wrapping all patched methods in an
async function, causing synchronous methods like streamText to return
Promises when they should return synchronous objects.
```
// Before
const result = streamText({model: "gpt-5"});
console.log(result);
```
```
// After
const result = streamText({model: "gpt-5"});
console.log(result); // DefaultStreamTextResult { ... } ✅
```
Resolves: #17553
0 commit comments