Skip to content

Fix File.find_matching_files()#207

Merged
hallacy merged 1 commit into
openai:mainfrom
LudditeLabs:fix-find_matching_files
Feb 6, 2023
Merged

Fix File.find_matching_files()#207
hallacy merged 1 commit into
openai:mainfrom
LudditeLabs:fix-find_matching_files

Conversation

@skozlovf

@skozlovf skozlovf commented Feb 2, 2023

Copy link
Copy Markdown
Contributor

File.__find_matching_files() can't correctly detect matching files because of missing file size info. It compares remote file size with the bytes builtin.

Regression: 0abf641.

This PR adds bytes argument to the File.__find_matching_files().

PS: Better to rename bytes -> bytes_ to not shadow builtin name and prevent such issues in the future.

@hallacy hallacy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@hallacy hallacy merged commit 5ac7946 into openai:main Feb 6, 2023
davedittrich pushed a commit to davedittrich/openai-python that referenced this pull request Nov 14, 2023
cgayapr pushed a commit to cgayapr/openai-python that referenced this pull request Dec 14, 2024
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.

2 participants