Skip to main content

Dual chat comparison flow (complete)

This is the primary user flow — the arena battle. Every step is documented for code generation accuracy.

Single chat flow

Streaming chat flow

The streaming endpoint uses Server-Sent Events (SSE). SSE event types:
Event objectDescriptionFields
ai.stream.deltaContent chunkdelta.type = "output_text", delta.text = chunk text
ai.stream.doneStream completefinishReason = "stop", optional usage
ai.errorError occurredcode, message

Voting data flow

Thread visibility and sharing

API key rotation flow