github vercel/ai @ai-sdk/gateway@4.0.155

latest releases: @ai-sdk/zai@2.0.23, @ai-sdk/xai@3.0.155, @ai-sdk/vue@3.0.337...
one hour ago

Patch Changes

  • ff3b865: chore(provider/gateway): update gateway model settings files

  • aa7cb79: fix(provider-utils): limit the size of a single server-sent event

    parseJsonEventStream and createEventSourceResponseHandler buffered an event until it was complete, without a limit. A streaming response that never completed an event could exhaust the memory and crash the process. A single event is now limited to 67,108,864 characters (64 MiB of ASCII text). A stream that exceeds the limit fails with an error and the response body is cancelled.

    The limit also applies to the streams that useChat and useCompletion read. parseJsonEventStream has a new maxEventSize option to change it. The gateway video model uses it to accept a result event of up to 536,870,912 characters, because that event contains the generated videos.

  • Updated dependencies [aa7cb79]

    • @ai-sdk/provider-utils@5.0.84

Don't miss a new ai release

NewReleases is sending notifications on new releases.