We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7758b5 commit 3f761e9Copy full SHA for 3f761e9
sentry_sdk/integrations/litellm.py
@@ -233,10 +233,7 @@ def _success_callback(
233
is_streaming = kwargs.get("stream")
234
# Callback is fired multiple times when streaming a response.
235
# Flag checked at https://github.com/BerriAI/litellm/blob/33c3f13443eaf990ac8c6e3da78bddbc2b7d0e7a/litellm/litellm_core_utils/litellm_logging.py#L1603
236
- if (
237
- is_streaming is not True
238
- or kwargs.get("complete_streaming_response") is not None
239
- ):
+ if is_streaming is not True or "complete_streaming_response" in kwargs:
240
span.__exit__(None, None, None)
241
242
0 commit comments