| 186 | } |
| 187 | |
| 188 | void CodeGeeXLLMPrivate::handleReplyFinished(QNetworkReply *reply) |
| 189 | { |
| 190 | if (q->modelState() == AbstractLLM::Idle) // llm is alread stopped |
| 191 | return; |
| 192 | if (reply->error()) { |
| 193 | qWarning() << "NetWork Error: " << reply->errorString(); |
| 194 | emit q->dataReceived(reply->errorString(), AbstractLLM::ResponseState::Failed); |
| 195 | } |
| 196 | q->setModelState(AbstractLLM::Idle); |
| 197 | } |
| 198 | |
| 199 | void CodeGeeXLLMPrivate::handleStreamResponse(const QByteArray &data, AbstractLLM::ResponseHandler handler) |
| 200 | { |
no test coverage detected