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
22
33import com.aallam.openai.api.assistant.AssistantTool
44import com.aallam.openai.api.assistant.assistantRequest
5+ import com.aallam.openai.api.core.Status
56import com.aallam.openai.api.model.ModelId
67import com.aallam.openai.api.run.RunRequest
78import com.aallam.openai.api.run.ThreadRunRequest
@@ -27,15 +28,10 @@ class TestRuns : TestOpenAI() {
2728 var retrieved = openAI.getRun(threadId = thread.id, runId = run.id)
2829 assertEquals(run.id, retrieved.id)
2930
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-
3731 val runs = openAI.runs(threadId = thread.id)
3832 assertEquals(1 , runs.size)
33+
34+ openAI.cancel(threadId = thread.id, runId = run.id)
3935 }
4036
4137 @Test
You can’t perform that action at this time.
0 commit comments