mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
Send tags to LiteLLM Proxy #3538
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @elabbarw on GitHub (Feb 2, 2025).
Is your feature request tied to a specific issue? Please elaborate.
Currently, Open WebUI lacks a built-in cost tracking system, which complicates users' efforts to manage and monitor expenses. Available solutions often require frequent adjustments, leading to potential inefficiencies.
Proposed Solution
I suggest introducing a feature that incorporates key metadata with a set of tags into the payload sent to LiteLLM, activated through the ENABLE_FORWARD_TAGS_LITELLM environment variable. This metadata would include tags such as {“tags”: [“openwebui”, “chat/image/audio/embedding”, user.id, user.email, user.name]}, facilitating seamless cost tracking using LiteLLM's features. This would eliminate the necessity of developing new cost management solutions.
Explored Alternatives
Additional Context
I've already successfully incorporated this feature in my internal fork. I would like to know if submitting a pull request for this enhancement is valuable, as it stands to significantly assist users in maintaining cost efficiency without the need for external tracking solutions.