-
Notifications
You must be signed in to change notification settings - Fork 514
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
fix(integrations): Add partial json support to streams #3674
base: master
Are you sure you want to change the base?
Conversation
Adds partial json to the content block when streaming.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3674 +/- ##
==========================================
- Coverage 79.98% 79.93% -0.05%
==========================================
Files 139 139
Lines 15445 15447 +2
Branches 2624 2625 +1
==========================================
- Hits 12353 12347 -6
- Misses 2219 2232 +13
+ Partials 873 868 -5
|
sentry_sdk/integrations/anthropic.py
Outdated
@@ -21,8 +21,7 @@ | |||
raise DidNotEnable("Anthropic not installed") | |||
|
|||
if TYPE_CHECKING: | |||
from typing import Any, AsyncIterator, Iterator | |||
from sentry_sdk.tracing import Span | |||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll review this PR again, my linter removed these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for that!
@kwnath could you fix the failing tests please? Thanks! |
Description
I actually forgotten to add the most crucial in PR where we wanted to add support for
partial_json
in tool calling when streaming. This PR fixes that.cc @antonpirker apologies for this!