-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix function call arg #3917
base: main
Are you sure you want to change the base?
Fix function call arg #3917
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a small typo otherwise LGTM.
@@ -275,6 +275,7 @@ def log_event( | |||
response_obj=response_obj, | |||
start_time=start_time, | |||
end_time=end_time, | |||
end_user_id=None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean user_id
here instead of end_user_id
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No... Here is the function definition for get_logging_payload
at litellm.proxy.utils
def get_logging_payload(
kwargs, response_obj, start_time, end_time, end_user_id: Optional[str]
):
from litellm.proxy._types import LiteLLM_SpendLogs
....
As I was reading through the code, I found the required param is not passed. Since its not passed, I hope setting value as None
is what expected. But we do have a param called user_id
from the parent function.
@krrishdholakia Should None
replaced with user_id
?
Title
Some required parameters of function call are not passed
Type
🐛 Bug Fix
🧹 Refactoring
Changes
See commit message