Commit e08c3b1
committed
Fix TypeError in AssistantMessageNormalizer when toolCalls is null
- Use hasToolCalls() check before array_map to prevent TypeError
- Return content when no tool calls are present
- Maintains backward compatibility and proper return types1 parent 11ef98f commit e08c3b1
File tree
1 file changed
+13
-13
lines changed- src/platform/src/Bridge/Anthropic/Contract
1 file changed
+13
-13
lines changedLines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 29 | | |
40 | 30 | | |
41 | 31 | | |
42 | 32 | | |
43 | 33 | | |
44 | | - | |
| 34 | + | |
45 | 35 | | |
46 | 36 | | |
47 | 37 | | |
| |||
53 | 43 | | |
54 | 44 | | |
55 | 45 | | |
56 | | - | |
| 46 | + | |
57 | 47 | | |
58 | 48 | | |
59 | 49 | | |
60 | 50 | | |
61 | 51 | | |
62 | 52 | | |
63 | | - | |
| 53 | + | |
64 | 54 | | |
65 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
0 commit comments