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

Router.get_available_deployment: Handle empty input edge case #729

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

mc-marcocheng
Copy link
Contributor

@mc-marcocheng mc-marcocheng commented Oct 31, 2023

If boolean of the input and messages evaluates to False, it errors out:

   if current_tpm + token_count > tpm or current_rpm + 1 >= rpm:
UnboundLocalError: local variable 'token_count' referenced before assignment

@vercel
Copy link

vercel bot commented Oct 31, 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 Oct 31, 2023 6:44am

@krrishdholakia
Copy link
Contributor

lgtm

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