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

core[patch]: set version="v2" as default in astream_events #29894

Merged
merged 4 commits into from
Feb 19, 2025

Conversation

ccurme
Copy link
Collaborator

@ccurme ccurme commented Feb 19, 2025

No description provided.

@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Feb 19, 2025
Copy link

vercel bot commented Feb 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2025 11:21pm

@dosubot dosubot bot added the 🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs label Feb 19, 2025
@@ -1057,9 +1060,11 @@ def with_parameters_and_callbacks(x: int, y: str, callbacks: Callbacks) -> dict:
"""A tool that does nothing."""
return {"x": x, "y": y}

kwargs = {"version": "v2"} if specify_version else {}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feels like an unnecessary complication for this specific unit test

The test seems to boil down to confirming that the default version is v2

Perhaps a separate logical test for it would be good?

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Feb 19, 2025
@ccurme ccurme enabled auto-merge (squash) February 19, 2025 23:16
@ccurme ccurme merged commit ed3c2bd into master Feb 19, 2025
73 checks passed
@ccurme ccurme deleted the cc/astream_events branch February 19, 2025 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PR looks good. Use to confirm that a PR is ready for merging. 🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants