You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: models/spring-ai-anthropic/src/test/java/org/springframework/ai/anthropic/api/AnthropicApiIT.java
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@
18
18
19
19
importjava.util.ArrayList;
20
20
importjava.util.List;
21
+
importjava.util.Random;
21
22
importjava.util.stream.Collectors;
22
23
23
24
importorg.junit.jupiter.api.Test;
@@ -73,6 +74,39 @@ public class AnthropicApiIT {
73
74
}
74
75
""")));
75
76
77
+
@Test
78
+
voidchatWithPromptCacheInAssistantMessage() {
79
+
StringassistantMessageText = "It could be either a contraction of the full title Quenta Silmarillion (\"Tale of the Silmarils\") or also a plain Genitive which "
80
+
+ "(as in Ancient Greek) signifies reference. This genitive is translated in English with \"about\" or \"of\" "
81
+
+ "constructions; the titles of the chapters in The Silmarillion are examples of this genitive in poetic English "
82
+
+ "(Of the Sindar, Of Men, Of the Darkening of Valinor etc), where \"of\" means \"about\" or \"concerning\". "
83
+
+ "In the same way, Silmarillion can be taken to mean \"Of/About the Silmarils\"";
StringuserMessageText = "It could be either a contraction of the full title Quenta Silmarillion (\"Tale of the Silmarils\") or also a plain Genitive which "
0 commit comments