-
Notifications
You must be signed in to change notification settings - Fork 1k
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 breaking changes due to updated Anthropic SDK #452
Conversation
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.
Thanks for the PR @eitanturok!
@ShishirPatil LGTM, ready to merge.
Also, this situation would be avoided if you pin your package versions. As a best practice, might be worthwhile doing this... |
Yes, good point. We will add that. |
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.
LGTM. Thanks @eitanturok
Anthropic just moved their tool use from beta to main so we have to change the import `from anthropic.types.beta.tools import ToolUseBlock` to `from anthropic.types import ToolUseBlock`. You cannot run the eval without this change as things break. Also, my IDE automatically sorted the imported packages and removed some extra spaces -- this explains all the other changes.
Anthropic just moved their tool use from beta to main so we have to change the import `from anthropic.types.beta.tools import ToolUseBlock` to `from anthropic.types import ToolUseBlock`. You cannot run the eval without this change as things break. Also, my IDE automatically sorted the imported packages and removed some extra spaces -- this explains all the other changes.
Anthropic just moved their tool use from beta to main so we have to change the import
from anthropic.types.beta.tools import ToolUseBlock
tofrom anthropic.types import ToolUseBlock
. You cannot run the eval without this change as things break.Also, my IDE automatically sorted the imported packages and removed some extra spaces -- this explains all the other changes.