Skip to content

Handling ordered deprecation #130

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

Merged
merged 2 commits into from
Nov 28, 2024
Merged

Handling ordered deprecation #130

merged 2 commits into from
Nov 28, 2024

Conversation

sidnarayanan
Copy link
Collaborator

#123 removed the ordered flag, but not all downstream environments have been updated. To deal with this, I am bringing the flag back and throwing a warning. We can properly deprecate it once everything has been updated.

I'm also fixing HotPotQA here for good measure.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Nov 27, 2024
Copy link
Collaborator

@jamesbraza jamesbraza left a comment

Choose a reason for hiding this comment

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

LGTM, nice work

@@ -177,6 +178,12 @@ async def exec_tool_calls(
Ordered list of ToolResponseMessages, order matches the order of tool calls
in the input message.
"""
if (ordered := function_kwargs.pop("ordered", None)) is not None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Check https://github.com/Future-House/aviary-internal/pull/930, Future-House/paper-qa#728

We already changed all users, I vote we just skip this deprecation.

Defer to you though, approved

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nice, I think that covers all our bases. Removing the deprecation

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Nov 28, 2024
@sidnarayanan sidnarayanan merged commit 22dc897 into main Nov 28, 2024
6 checks passed
@sidnarayanan sidnarayanan deleted the deprecating-ordered branch November 28, 2024 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants