Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

edwinjosegeorge
Copy link
Contributor

Title

Some required parameters of function call are not passed

Type

🐛 Bug Fix
🧹 Refactoring

Changes

See commit message

Copy link

vercel bot commented May 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2024 0:48am

Copy link
Contributor

@paneru-rajan paneru-rajan left a 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,
Copy link
Contributor

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?

Copy link
Contributor Author

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants