Open togmund opened 2 days ago
OpenMeter rejects requests from this logger here: https://github.com/BerriAI/litellm/blob/1890fde3f377b0896e7ca5908953ef948ec1c8a7/litellm/integrations/openmeter.py#L128-L135 Because the value of subject is not a string. See schema here.
subject
This is because instead of assigning the subject property with the value of the user param in kwargs, it is instead wrapping that value in a tuple: https://github.com/BerriAI/litellm/blob/1890fde3f377b0896e7ca5908953ef948ec1c8a7/litellm/integrations/openmeter.py#L73
user
kwargs
N/A
🐛 Bug Fix
If UI changes, send a screenshot/GIF of working UI fixes
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Title
OpenMeter rejects requests from this logger here: https://github.com/BerriAI/litellm/blob/1890fde3f377b0896e7ca5908953ef948ec1c8a7/litellm/integrations/openmeter.py#L128-L135 Because the value of
subject
is not a string. See schema here.This is because instead of assigning the
subject
property with the value of theuser
param inkwargs
, it is instead wrapping that value in a tuple: https://github.com/BerriAI/litellm/blob/1890fde3f377b0896e7ca5908953ef948ec1c8a7/litellm/integrations/openmeter.py#L73Relevant issues
N/A
Type
🐛 Bug Fix
Changes
subject
with the value of theuser
param, rather than as a tuple containing the value of theuser
param.[REQUIRED] Testing - Attach a screenshot of any new tests passing locally
If UI changes, send a screenshot/GIF of working UI fixes