effect-io-ai

Package: @effect/ai-openrouter
Module: OpenRouterClient

OpenRouterClient.ChatStreamingResponseChunkData

Decoded data payload from an OpenRouter chat completion streaming chunk.

Details

The payload contains streamed choices, model metadata, optional usage, and may include an OpenRouter error object for a streamed response.

Signature

type ChatStreamingResponseChunkData = typeof Generated.ChatStreamingResponse.fields.data.Type

Source

Since v4.0.0