Skip to content

fix: normalize PathLike tuple upload content#3500

Open
nightcityblade wants to merge 1 commit into
openai:mainfrom
nightcityblade:fix/issue-3473
Open

fix: normalize PathLike tuple upload content#3500
nightcityblade wants to merge 1 commit into
openai:mainfrom
nightcityblade:fix/issue-3473

Conversation

@nightcityblade

Copy link
Copy Markdown
  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Fixes #3473.

Handle tuple uploads before the generic file-content branch so tuple payloads like (filename, Path(...)) normalize their inner PathLike contents the same way direct file inputs already do.

Additional context & links

Local verification:

  • PYTHONPATH=/tmp/openai-python/src python3.9 -m pytest tests/test_files.py -k tuple_content_supports_pathlike -q -o addopts=

@nightcityblade nightcityblade requested a review from a team as a code owner July 13, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PathLike file contents fail when passed inside upload tuples

1 participant