MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / finalize

Method finalize

runners/helpers/CountTokens.cpp:116–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 return sb.as_cslice().str();
115 }
116 std::string finalize() override {
117 return last_;
118 }
119 ton::tl_object_ptr<cocoon_api::tokensUsed> usage() override {
120 auto prompt_tokens_adj = adjust_tokens(prompt_tokens_ - cached_tokens_, coef_, prompt_tokens_mult_);
121 auto cached_tokens_adj = adjust_tokens(cached_tokens_, coef_, cached_tokens_mult_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected