Merge pull request #347 from defnax/api-rshistory

API for rsHistory needed for webui chat settings
This commit is contained in:
csoler 2026-07-27 21:41:39 +02:00 committed by GitHub
commit 61434cd485
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -137,17 +137,20 @@ public:
/*!
* @brief Retrieves the maximum storage time period for messages in history
* @jsonapi{development}
* @return max storage duration of chat.
*/
virtual uint32_t getMaxStorageDuration() = 0;
/*!
* @brief Sets the maximum storage time period for messages in history
* @jsonapi{development}
* @param[in] seconds max storage duration time in seconds
*/
virtual void setMaxStorageDuration(uint32_t seconds) = 0;
/*!
* @brief Gets the maximum number of messages to save
* @jsonapi{development}
* @param[in] chat_type Type of chat for that number limit
* @return maximum number of messages to save
*/