| 65 | } |
| 66 | |
| 67 | void LLMClientInterface::handleRequestFinalized( |
| 68 | const ::LLMQore::RequestID &requestId, const ::LLMQore::CompletionInfo &info) |
| 69 | { |
| 70 | if (!m_activeRequests.contains(requestId) || !info.usage) |
| 71 | return; |
| 72 | |
| 73 | const auto &u = *info.usage; |
| 74 | LOG_MESSAGE(QString("Completion usage [%1]: prompt=%2 completion=%3 cached=%4 reasoning=%5") |
| 75 | .arg(requestId) |
| 76 | .arg(u.promptTokens) |
| 77 | .arg(u.completionTokens) |
| 78 | .arg(u.cachedPromptTokens) |
| 79 | .arg(u.reasoningTokens)); |
| 80 | } |
| 81 | |
| 82 | void LLMClientInterface::handleRequestFailed(const QString &requestId, const QString &error) |
| 83 | { |
nothing calls this directly
no outgoing calls
no test coverage detected