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

Method sessionPromptTokens

ChatView/ChatModel.cpp:603–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601}
602
603int ChatModel::sessionPromptTokens() const
604{
605 int total = 0;
606 for (const auto &m : m_messages)
607 total += m.promptTokens;
608 return total;
609}
610
611int ChatModel::sessionCompletionTokens() const
612{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected