| 248 | } |
| 249 | |
| 250 | void ChatCompressor::connectProviderSignals() |
| 251 | { |
| 252 | auto *c = m_provider->client(); |
| 253 | |
| 254 | m_connections.append(connect( |
| 255 | c, |
| 256 | &::LLMQore::BaseClient::chunkReceived, |
| 257 | this, |
| 258 | &ChatCompressor::onPartialResponseReceived, |
| 259 | Qt::UniqueConnection)); |
| 260 | |
| 261 | m_connections.append(connect( |
| 262 | c, |
| 263 | &::LLMQore::BaseClient::requestCompleted, |
| 264 | this, |
| 265 | &ChatCompressor::onFullResponseReceived, |
| 266 | Qt::UniqueConnection)); |
| 267 | |
| 268 | m_connections.append(connect( |
| 269 | c, |
| 270 | &::LLMQore::BaseClient::requestFailed, |
| 271 | this, |
| 272 | &ChatCompressor::onRequestFailed, |
| 273 | Qt::UniqueConnection)); |
| 274 | } |
| 275 | |
| 276 | void ChatCompressor::disconnectAllSignals() |
| 277 | { |