Stream_chunk.Choicetype t = {logprobs : Logprobs.t option;finish_reason : string option;native_finish_reason : string option;index : int;delta : Delta.t;error : Jsonaf.t option;Populated when the upstream provider fails after generation has begun. Schema is provider-specific so we keep it as raw JSON.
*)}val is_error : t -> bool