gproxy_protocol/gemini/stream_generate_content/stream.rs
1use crate::gemini::generate_content::response::ResponseBody as GeminiGenerateContentResponseBody;
2
3/// A single NDJSON stream chunk (one line of newline-delimited JSON).
4///
5/// Each line in the NDJSON response deserializes to this type.
6/// Used when `alt` query parameter is omitted (default transport).
7pub type GeminiNdjsonChunk = GeminiGenerateContentResponseBody;
8
9/// A single SSE stream chunk (the `data:` payload of one SSE event).
10///
11/// Each SSE `data:` line (except `[DONE]`) deserializes to this type.
12/// Used when `alt=sse` query parameter is set.
13pub type GeminiSseChunk = GeminiGenerateContentResponseBody;