package ocaml-ai-sdk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ai_provider_openrouter.Convert_streamSource

OpenRouter SSE stream conversion.

Extract response identity from the first completion chunk without consuming the stream. Empty debug chunks from failed fallback attempts are skipped.

Transform SSE events into SDK stream parts. Handles reasoning deltas and extended usage metrics.