Skip to content

Commit

Permalink
fix(assistants): files endpoint (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeeb authored Jan 17, 2024
1 parent cfe885b commit f505bd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f505bd0

Please sign in to comment.