Commit 33cabef
authored
Fix breaking changes due to updated Anthropic SDK (#452)
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.1 parent fade5e4 commit 33cabef
File tree
1 file changed
+14
-12
lines changed- berkeley-function-call-leaderboard/model_handler
1 file changed
+14
-12
lines changedLines changed: 14 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 6 | + | |
6 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | | - | |
| 12 | + | |
9 | 13 | | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | | - | |
12 | | - | |
13 | 17 | | |
14 | | - | |
15 | | - | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | | - | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | | - | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | | - | |
| 87 | + | |
0 commit comments