MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / onReplyReadyRead

Method onReplyReadyRead

app/src/AI/Providers/GeminiReply.cpp:210–220  ·  view source on GitHub ↗

* @brief Forwards every chunk into the SSE reader. */

Source from the content-addressed store, hash-verified

208 * @brief Forwards every chunk into the SSE reader.
209 */
210void AI::GeminiReply::onReplyReadyRead()
211{
212 if (!m_reply || m_finished)
213 return;
214
215 const auto status = m_reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
216 if (status >= 400)
217 return;
218
219 m_sse->feed(m_reply->readAll());
220}
221
222/**
223 * @brief Handles end-of-stream: drain remaining buffer and finalize.

Callers

nothing calls this directly

Calls 1

feedMethod · 0.80

Tested by

no test coverage detected