maeser.controllers.chat_logs_overview module#
This module contains the controller function for rendering the chat logs overview page.
It handles fetching log files, applying filters, and calculating aggregate data such as total tokens and cost.
© 2024 Carson Bush, Blaine Freestone
This file is part of Maeser.
Maeser is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Maeser is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with Maeser. If not, see <https://www.gnu.org/licenses/>.
- maeser.controllers.chat_logs_overview.controller(chat_sessions_manager: ChatSessionManager, app_name: str | None = None, favicon: str | None = None) str [source]#
Render the home page with log files and aggregate token and cost data.
- Parameters:
chat_sessions_manager (ChatSessionManager) – An instance of ChatSessionManager to manage chat sessions.
- Returns:
Rendered home template with log file list.
- Return type:
str