Skip to content

Function: toImageSSE()

@providerprotocol/ai


@providerprotocol/ai / proxy / toImageSSE

toImageSSE(stream): Response

Defined in: src/providers/proxy/server/webapi.ts:297

Create an SSE Response from an ImageStreamResult.

Streams image events as SSE, then sends the final image result.

ImageStreamLike

The ImageStreamResult or ImageProviderStreamResult from image().stream()

Response

HTTP Response with SSE body