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

Add **kwargs to mock_completion #367

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

toniengelhardt
Copy link
Contributor

Adds **kwargs to mock_completion method.

In a testing scenario I would want to swap the functions and leaving the rest of the code untouched. If parameters are passed to completion that currently leads to errors in the mock version because it doesn't take any keyword arguments.

Allows replacing `completion` with `mock_completion` without encountering errors.
@vercel
Copy link

vercel bot commented Sep 14, 2023

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 Sep 14, 2023 9:31am

@krrishdholakia
Copy link
Contributor

Thanks for catching this and updating via PR! @toniengelhardt

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