Commit 9e857ec
committed
Fix ChatClientToolsWithGenericArgumentTypesIT
- In both Anthropic and OpenAI, fix the callCounter reset issue by setting callCounter.set(0) in @beforeeach to properly reset state between tests
- In OpenAI, update toolWithGenericArgumentTypes2 to have flexible assertions verify graceful handling of invalid enum values
Signed-off-by: Ilayaperumal Gopinathan <[email protected]>1 parent 5ef6305 commit 9e857ec
File tree
2 files changed
+12
-3
lines changed- models
- spring-ai-anthropic/src/test/java/org/springframework/ai/anthropic/client
- spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/client
2 files changed
+12
-3
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | | - | |
73 | | - | |
| 75 | + | |
| 76 | + | |
74 | 77 | | |
75 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
| |||
0 commit comments