MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / reportCacheStats

Method reportCacheStats

app/src/AI/Assistant.cpp:361–369  ·  view source on GitHub ↗

* @brief Updates the cache-stats properties from a Reply. */

Source from the content-addressed store, hash-verified

359 * @brief Updates the cache-stats properties from a Reply.
360 */
361void AI::Assistant::reportCacheStats(int readTokens, int createdTokens)
362{
363 if (m_cacheReadTokens == readTokens && m_cacheCreatedTokens == createdTokens)
364 return;
365
366 m_cacheReadTokens = readTokens;
367 m_cacheCreatedTokens = createdTokens;
368 Q_EMIT cacheStatsChanged();
369}
370
371//--------------------------------------------------------------------------------------------------
372// Mutators

Callers 1

issueRequestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected