How do you handle streaming reliability with LiteLLM? #11304
Unanswered
jamesleeht
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for the great work on the library!
There are multiple issues that can happen with streaming which LiteLLM helps to handle:
ContentPolicyViolationError
. We can also set our own custom string checks to catch the cases outside of the stop reason.There's an issue I'm not sure how to catch - when the stream cuts off mid sentence does that surface as a specific stop_reason?
Does LiteLLM count it as a stream completion only if it gets a "stop" stop_reason? Couldn't find it in the docs. Would appreciate any help.
Beta Was this translation helpful? Give feedback.
All reactions