diff --git a/openai/api_resources/file.py b/openai/api_resources/file.py index 365cb2add8..394417245f 100644 --- a/openai/api_resources/file.py +++ b/openai/api_resources/file.py @@ -198,7 +198,7 @@ async def adownload( return result.content @classmethod - def __find_matching_files(cls, name, all_files, purpose): + def __find_matching_files(cls, name, bytes, all_files, purpose): matching_files = [] basename = os.path.basename(name) for f in all_files: @@ -234,7 +234,7 @@ def find_matching_files( api_version=api_version, organization=organization, ).get("data", []) - return cls.__find_matching_files(name, all_files, purpose) + return cls.__find_matching_files(name, bytes, all_files, purpose) @classmethod async def afind_matching_files( @@ -258,4 +258,4 @@ async def afind_matching_files( organization=organization, ) ).get("data", []) - return cls.__find_matching_files(name, all_files, purpose) + return cls.__find_matching_files(name, bytes, all_files, purpose)