ai icon indicating copy to clipboard operation
ai copied to clipboard

Enhance response handling for number types

Open celestial-rose opened this issue 1 month ago • 1 comments

This PR addresses a critical bug in the implementation that caused non-output when streaming responses from models like Llama4 that can return numeric chunks. The issue stemmed from an inadequate check on incoming stream chunks, which assumed all chunks would have a .length property, leading to errors with non-string data types.

celestial-rose avatar Nov 08 '25 21:11 celestial-rose

🦋 Changeset detected

Latest commit: 4e7ca23f6aa4107d372739e197272d0043e9b18a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
workers-ai-provider Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Nov 08 '25 21:11 changeset-bot[bot]