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: anthropic-client/anthropic-client-core/src/commonMain/kotlin/com/tddworks/anthropic/api/messages/api/Message.kt
Copy file name to clipboardExpand all lines: anthropic-client/anthropic-client-core/src/jvmTest/kotlin/com/tddworks/anthropic/api/messages/api/ContentTest.kt
Copy file name to clipboardExpand all lines: anthropic-client/anthropic-client-core/src/jvmTest/kotlin/com/tddworks/anthropic/api/messages/api/CreateMessageRequestTest.kt
+23-23Lines changed: 23 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -19,29 +19,29 @@ class CreateMessageRequestTest {
19
19
fun`should convert request to correct json with multiple messages`() {
20
20
val json =
21
21
"""
22
-
{
23
-
"messages": [{
24
-
"role": "user",
25
-
"content": [{
26
-
"type": "image",
27
-
"source": {
28
-
"type": "base64",
29
-
"media_type": "123",
30
-
"data": "23"
22
+
{
23
+
"messages": [{
24
+
"role": "user",
25
+
"content": [{
26
+
"type": "image",
27
+
"source": {
28
+
"type": "base64",
29
+
"media_type": "123",
30
+
"data": "23"
31
+
}
32
+
},
33
+
{
34
+
"type": "text",
35
+
"text": "Describe this image."
31
36
}
32
-
},
33
-
{
34
-
"type": "text",
35
-
"text": "Describe this image."
36
-
}
37
-
]
38
-
}],
39
-
"system": null,
40
-
"max_tokens": 1024,
41
-
"model": "claude-3-haiku-20240307",
42
-
"stream": null
43
-
}
44
-
"""
37
+
]
38
+
}],
39
+
"system": null,
40
+
"max_tokens": 1024,
41
+
"model": "claude-3-haiku-20240307",
42
+
"stream": null
43
+
}
44
+
"""
45
45
.trimIndent()
46
46
47
47
val request =
@@ -95,7 +95,7 @@ class CreateMessageRequestTest {
Copy file name to clipboardExpand all lines: anthropic-client/anthropic-client-core/src/jvmTest/kotlin/com/tddworks/anthropic/api/messages/api/internal/DefaultMessagesApiTest.kt
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -295,25 +295,25 @@ class DefaultMessagesApiTest : KoinTest {
Copy file name to clipboardExpand all lines: anthropic-client/anthropic-client-core/src/jvmTest/kotlin/com/tddworks/anthropic/api/messages/api/internal/TestKoinCoroutineExtension.kt
Copy file name to clipboardExpand all lines: anthropic-client/anthropic-client-core/src/jvmTest/kotlin/com/tddworks/anthropic/api/messages/api/internal/json/StreamMessageResponseTest.kt
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ class StreamMessageResponseTest {
15
15
{
16
16
"type": "null"
17
17
}
18
-
"""
18
+
"""
19
19
.trimIndent()
20
20
21
21
val e =
@@ -33,7 +33,7 @@ class StreamMessageResponseTest {
33
33
{
34
34
"type": {}
35
35
}
36
-
"""
36
+
"""
37
37
.trimIndent()
38
38
39
39
val e =
@@ -54,7 +54,7 @@ class StreamMessageResponseTest {
0 commit comments