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

docs: add time.sleep() between streaming calls #5402

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

ajeetdsouza
Copy link
Contributor

Title

Add time.sleep() between streaming calls. LiteLLM's cache appears to be updated in the background. Without this time.sleep() call, both responses take 0.8s to return, but after adding it, the second response returns in 0.006s.

Relevant issues

None

Type

📖 Documentation

Changes

  • Add time.sleep() between streaming calls

LiteLLM's cache appears to be updated in the background. Without this `time.sleep()` call, both responses take `0.8s` to return, but after adding it, the second response returns in `0.006s`.
Copy link

vercel bot commented Aug 28, 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 Aug 28, 2024 0:33am

@ishaan-jaff ishaan-jaff merged commit 3df1186 into BerriAI:main Aug 28, 2024
2 checks passed
@ajeetdsouza ajeetdsouza deleted the patch-1 branch August 28, 2024 17:49
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.

None yet

2 participants