MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / processResponse

Method processResponse

src/plugins/aimanager/codegeex/codegeexllm.cpp:317–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317void CodeGeeXLLMPrivate::processResponse(QNetworkReply *reply, AbstractLLM::ResponseHandler handler)
318{
319 CodeGeeXLLM::connect(reply, &QNetworkReply::readyRead, q, [=]() {
320 if (reply->error()) {
321 qCritical() << "Error:" << reply->errorString();
322 replyMessage(reply->errorString(), AbstractLLM::Failed, handler);
323 } else {
324 if (stream)
325 handleStreamResponse(reply->readAll(), handler);
326 else
327 handleNonStreamResponse(reply->readAll(), handler);
328 }
329 });
330}
331
332CodeGeeXLLM::CodeGeeXLLM(QObject *parent)
333 : AbstractLLM(parent), d(new CodeGeeXLLMPrivate(this))

Callers 2

requestMethod · 0.45
generateMethod · 0.45

Calls 4

connectFunction · 0.85
errorMethod · 0.80
readAllMethod · 0.80
errorStringMethod · 0.45

Tested by

no test coverage detected