Skip to content

Commit

Permalink
Files for assistants can now be PDFs,... as we only validate .jsonl f…
Browse files Browse the repository at this point in the history
…iles
  • Loading branch information
Stefan committed Nov 27, 2023
1 parent 80da193 commit 9a8154e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openai/files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def list
end

def upload(parameters: {})
validate(file: parameters[:file])
validate(file: parameters[:file]) if parameters[:file].include?(".jsonl")

@client.multipart_post(
path: "/files",
Expand Down

0 comments on commit 9a8154e

Please sign in to comment.