| 89 | } |
| 90 | |
| 91 | void ChatCompressor::cancelCompression() |
| 92 | { |
| 93 | if (!m_isCompressing) |
| 94 | return; |
| 95 | |
| 96 | LOG_MESSAGE("Cancelling compression request"); |
| 97 | |
| 98 | if (m_provider && !m_currentRequestId.isEmpty()) |
| 99 | m_provider->cancelRequest(m_currentRequestId); |
| 100 | |
| 101 | cleanupState(); |
| 102 | emit compressionFailed(tr("Compression cancelled")); |
| 103 | } |
| 104 | |
| 105 | void ChatCompressor::onPartialResponseReceived(const QString &requestId, const QString &partialText) |
| 106 | { |
nothing calls this directly
no test coverage detected