Skip to content

Commit b4bf658

Browse files
committed
docs: improve error message for invalid file param type
1 parent 4267921 commit b4bf658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openai/_utils/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _extract_items(
5858
# We have exhausted the path, return the entry we found.
5959
if not isinstance(obj, bytes) and not isinstance(obj, tuple) and not isinstance(obj, io.IOBase):
6060
raise RuntimeError(
61-
f"Expected entry at {flattened_key} to be bytes, an io.IOBase instance or a tuple but received {type(obj)} instead."
61+
f"Expected entry at {flattened_key} to be bytes, an io.IOBase instance or a tuple but received {type(obj)} instead. See https://github.com/openai/openai-python/tree/v1#file-uploads"
6262
) from None
6363

6464
# TODO: validate obj more?

0 commit comments

Comments
 (0)