MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / handleRequestFinalized

Method handleRequestFinalized

LLMClientInterface.cpp:67–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void 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
82void LLMClientInterface::handleRequestFailed(const QString &requestId, const QString &error)
83{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected