You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have OpenWebUI as the LLM front-end that we have connected to LiteLLM and we want to now add Openmeter and set up per email address cost/token tracking.
Environment:
LiteLLM version: ghcr.io/berriai/litellm:main-stable
Deployment: Kubernetes (EKS)
OpenWebUI with ENABLE_FORWARD_USER_INFO_HEADERS=True
Issue:
OpenMeter integration throws Exception: OpenMeter: user is required even though the user email is present in the request metadata.
File "/usr/lib/python3.13/site-packages/litellm/integrations/openmeter.py", line 80, in _common_logic
raise Exception("OpenMeter: user is required")
The Problem:
Looking at the OpenMeter integration code (openmeter.py lines 65-80), it expects:
kwargs.get("user") OR
kwargs["litellm_params"]["metadata"]["user_api_key_user_id"]
But in my logs, the metadata is at:
kwargs["metadata"]["user_api_key_end_user_id"] (not nested under litellm_params)
**Question:**
How do I configure LiteLLM to properly set the user parameter that OpenMeter needs when using OpenWebUI headers? The user_header_name setting doesn't seem to populate kwargs["user"] in a way that OpenMeter can access it.
Is there a configuration option I'm missing, or does the OpenMeter integration need to be updated to look for user data in the correct location in kwargs?
Any help on how to fix this and link it all together or how to solve this would be very much appreciated.
I have made this as a separate issue topic, so I apologise if this qna is not the right way to do it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have OpenWebUI as the LLM front-end that we have connected to LiteLLM and we want to now add Openmeter and set up per email address cost/token tracking.
Environment:
LiteLLM version: ghcr.io/berriai/litellm:main-stable
Deployment: Kubernetes (EKS)
OpenWebUI with ENABLE_FORWARD_USER_INFO_HEADERS=True
Issue:
OpenMeter integration throws Exception: OpenMeter: user is required even though the user email is present in the request metadata.
My config:
What I see in the logs:
Beta Was this translation helpful? Give feedback.
All reactions