Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 1.15 KB

README.md

File metadata and controls

26 lines (14 loc) · 1.15 KB

open-webui-cost-tracker

This open-webui function is designed to manage and calculate the costs associated with user interactions with models in a Open WebUI appliance. The number of (input and output) tokens, price and other metrics are shown in the message status area of Open Webui interface. This status appear right above the message content (see Fig. below)

image

image

Install

Remember to enable the function globally (or by model):

image

Streamlit App

This repo also provides a streamlit app to read and process the generated costs.json file containing model usage data for every user. The costs-<year>.json file is located in the open-webui data directory.

A screenshot of the simple streamlit app is shown below.

Streamlit app for costs processing

image