End of the reply. finishReason is the provider's finish_reason (stop, tool_calls, length, content_filter, …) or null when the stream ended without one — the loop turns anything but a normal finish into a visible notice instead of stopping silently.
finishReason
finish_reason
stop
tool_calls
length
content_filter
End of the reply.
finishReasonis the provider'sfinish_reason(stop,tool_calls,length,content_filter, …) or null when the stream ended without one — the loop turns anything but a normal finish into a visible notice instead of stopping silently.