From 61b8374315770ab8439e5a404472b9e98aaf11d3 Mon Sep 17 00:00:00 2001 From: Sergey Kozlov Date: Thu, 2 Feb 2023 13:02:51 +0600 Subject: [PATCH] Add 'bytes' argument to __find_matching_files() --- openai/api_resources/file.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)