* @brief Updates the cache-stats properties from a Reply. */
| 359 | * @brief Updates the cache-stats properties from a Reply. |
| 360 | */ |
| 361 | void 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 |