We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38f14b9 commit fbe5045Copy full SHA for fbe5045
lib/openai/files.rb
@@ -48,7 +48,7 @@ def prepare_file_input(file_input:)
48
elsif file_input.respond_to?(:read) && file_input.respond_to?(:rewind)
49
file_input
50
else
51
- raise ArgumentError, "Invalid file - must be either a readable IO object or a path to a file."
+ raise ArgumentError, "Invalid file - must be a StringIO object or a path to a file."
52
end
53
54
0 commit comments