diff --git a/openai-client/src/commonMain/kotlin/com.aallam.openai.client/internal/api/AssistantsApi.kt b/openai-client/src/commonMain/kotlin/com.aallam.openai.client/internal/api/AssistantsApi.kt index 38a617e2..414bdbc1 100644 --- a/openai-client/src/commonMain/kotlin/com.aallam.openai.client/internal/api/AssistantsApi.kt +++ b/openai-client/src/commonMain/kotlin/com.aallam.openai.client/internal/api/AssistantsApi.kt @@ -133,7 +133,7 @@ internal class AssistantsApi(val requester: HttpRequester) : Assistants { val request = buildJsonObject { put("file", fileId.id) } return requester.perform { it.post { - url(path = "${ApiPath.Assistants}/${assistantId.id}") + url(path = "${ApiPath.Assistants}/${assistantId.id}/files") setBody(request) contentType(ContentType.Application.Json) beta("assistants", 1)