File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
openai-client/src/commonTest/kotlin/com/aallam/openai/client Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.aallam.openai.client
2
2
3
3
import com.aallam.openai.api.assistant.AssistantTool
4
4
import com.aallam.openai.api.assistant.assistantRequest
5
+ import com.aallam.openai.api.core.Status
5
6
import com.aallam.openai.api.model.ModelId
6
7
import com.aallam.openai.api.run.RunRequest
7
8
import com.aallam.openai.api.run.ThreadRunRequest
@@ -27,15 +28,10 @@ class TestRuns : TestOpenAI() {
27
28
var retrieved = openAI.getRun(threadId = thread.id, runId = run.id)
28
29
assertEquals(run.id, retrieved.id)
29
30
30
- val canceled = openAI.cancel(threadId = thread.id, runId = run.id)
31
- assertEquals(run.id, canceled.id)
32
-
33
- val metadata = mapOf (" modified" to " true" , " user" to " aallam" )
34
- val modified = openAI.updateRun(threadId = thread.id, runId = run.id, metadata = metadata)
35
- assertEquals(metadata, modified.metadata)
36
-
37
31
val runs = openAI.runs(threadId = thread.id)
38
32
assertEquals(1 , runs.size)
33
+
34
+ openAI.cancel(threadId = thread.id, runId = run.id)
39
35
}
40
36
41
37
@Test
You can’t perform that action at this time.
0 commit comments