| 420 | } |
| 421 | |
| 422 | void QuickRefactorHandler::handleRequestFinalized( |
| 423 | const ::LLMQore::RequestID &requestId, const ::LLMQore::CompletionInfo &info) |
| 424 | { |
| 425 | if (requestId != m_lastRequestId || !info.usage) |
| 426 | return; |
| 427 | |
| 428 | const auto &u = *info.usage; |
| 429 | LOG_MESSAGE( |
| 430 | QString("Quick refactor usage [%1]: prompt=%2 completion=%3 cached=%4 reasoning=%5") |
| 431 | .arg(requestId) |
| 432 | .arg(u.promptTokens) |
| 433 | .arg(u.completionTokens) |
| 434 | .arg(u.cachedPromptTokens) |
| 435 | .arg(u.reasoningTokens)); |
| 436 | } |
| 437 | |
| 438 | void QuickRefactorHandler::handleRequestFailed(const QString &requestId, const QString &error) |
| 439 | { |
nothing calls this directly
no outgoing calls
no test coverage detected