mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 10:14:26 +00:00
assign subject as user value from kwargs instead of tuple containing user value
This commit is contained in:
parent
1890fde3f3
commit
451cdac02d
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ class OpenMeterLogger(CustomLogger):
|
|||
"total_tokens": response_obj["usage"].get("total_tokens"),
|
||||
}
|
||||
|
||||
subject = (kwargs.get("user", None),) # end-user passed in via 'user' param
|
||||
subject = kwargs.get("user", None) # end-user passed in via 'user' param
|
||||
if not subject:
|
||||
raise Exception("OpenMeter: user is required")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue