Jordy van den Aardweg

Results 18 comments of Jordy van den Aardweg

Ran into the same problem. Just loop through the entries yourself as a workaround. Hope this helps others: ```javascript const configBase = { entry: { one: './src/one.js', two: './src/two.js', },...

Thanks @eashish93. I've got a little improved version below. `positionReference` is not available according to my types and latest version of floating-ui. Instead, use `refs.setPositionReference`. Below is my version. I'm...

Had the same issue, and fixed it by using `swcMinify: false` as stated above. Just here to say the issue seems fixed in NextJS 13, so you can remove `swcMinify:...

Maybe catch the AbortError on the server and expect it to happen by returning null or something? Like the client hooks do: https://github.com/vercel-labs/ai/blob/main/packages/core/react/use-completion.ts#L179 Haven't played around with it just yet,...

To hook into this conversation. My implementation looks like this: https://sdk.vercel.ai/docs/api-reference/openai-stream#chat-model-example . So with all the methods the AI SDK provides. And the latest NextJS canary. Using the pages directory....

@jridgewell awesome! Appreciate the quick response on this! Looking forward to try it out 👍 Also, could you re-open this issue until there's a verification it works?

Thanks @jridgewell , confirmed it works! Token usages reported on the OpenAI website matches with what you would expect when you cancel the stream. One future improvement could be to...

> related issue [vercel/next.js#48381](https://github.com/vercel/next.js/discussions/48381) Yes, that's the same issue. Once aborted, you get a uncaught exception, which you can't catch. > What are some current workarounds till the team fixes...