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: dd-java-agent/instrumentation/openai-java/openai-java-1.0/src/test/groovy/ChatCompletionServiceTest.groovy
+20-9Lines changed: 20 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ class ChatCompletionServiceTest extends OpenAiTest {
23
23
expect:
24
24
resp !=null
25
25
and:
26
-
assertChatCompletionTrace()
26
+
assertChatCompletionTrace(false)
27
27
}
28
28
29
29
def"create chat/completion test withRawResponse"() {
@@ -35,7 +35,7 @@ class ChatCompletionServiceTest extends OpenAiTest {
35
35
resp.statusCode() ==200
36
36
resp.parse().valid // force response parsing, so it sets all the tags
37
37
and:
38
-
assertChatCompletionTrace()
38
+
assertChatCompletionTrace(false)
39
39
}
40
40
41
41
def"create streaming chat/completion test"() {
@@ -49,7 +49,7 @@ class ChatCompletionServiceTest extends OpenAiTest {
49
49
}
50
50
51
51
expect:
52
-
assertChatCompletionTrace()
52
+
assertChatCompletionTrace(true)
53
53
}
54
54
55
55
def"create streaming chat/completion test withRawResponse"() {
@@ -63,7 +63,7 @@ class ChatCompletionServiceTest extends OpenAiTest {
63
63
}
64
64
65
65
expect:
66
-
assertChatCompletionTrace()
66
+
assertChatCompletionTrace(true)
67
67
}
68
68
69
69
def"create async chat/completion test"() {
@@ -74,7 +74,7 @@ class ChatCompletionServiceTest extends OpenAiTest {
74
74
completionFuture.get()
75
75
76
76
expect:
77
-
assertChatCompletionTrace()
77
+
assertChatCompletionTrace(false)
78
78
}
79
79
80
80
def"create async chat/completion test withRawResponse"() {
@@ -86,7 +86,7 @@ class ChatCompletionServiceTest extends OpenAiTest {
86
86
resp.parse().valid // force response parsing, so it sets all the tags
0 commit comments