Commit 9907b2c
fix: GH-4472 1. Optimized the
2. Fixed an issue in the `eventToChatCompletionResponse` method of `StreamHelper` where `thinkingBlock.signature()` was not being handled;
3. Improved `StreamHelperTests` to increase test coverage
Signed-off-by: Sun Yuhan <[email protected]>mergeToolUseEvents method in StreamHelper to enhance robustness when previousEvent is not a ToolUseAggregationEvent;1 parent 0ad6bd6 commit 9907b2c
File tree
2 files changed
+430
-3
lines changed- models/spring-ai-anthropic/src
- main/java/org/springframework/ai/anthropic/api
- test/java/org/springframework/ai/anthropic/api
2 files changed
+430
-3
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
161 | 164 | | |
162 | 165 | | |
163 | 166 | | |
164 | | - | |
| 167 | + | |
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
| |||
0 commit comments