Skip to content

Commit

Permalink
Merge pull request #391 from stefan-kp/feature/validate_only_jsonl_files
Browse files Browse the repository at this point in the history
Files for assistants can now be PDFs,... as we only validate .jsonl files
  • Loading branch information
alexrudall committed Dec 4, 2023
2 parents 80da193 + 9a8154e commit 5495a55
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 5495a55

Please sign in to comment.