Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ac7946

Browse files
authored
Add 'bytes' argument to __find_matching_files() (openai#207)
1 parent 33fd626 commit 5ac7946

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openai/api_resources/file.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ async def adownload(
198198
return result.content
199199

200200
@classmethod
201-
def __find_matching_files(cls, name, all_files, purpose):
201+
def __find_matching_files(cls, name, bytes, all_files, purpose):
202202
matching_files = []
203203
basename = os.path.basename(name)
204204
for f in all_files:
@@ -234,7 +234,7 @@ def find_matching_files(
234234
api_version=api_version,
235235
organization=organization,
236236
).get("data", [])
237-
return cls.__find_matching_files(name, all_files, purpose)
237+
return cls.__find_matching_files(name, bytes, all_files, purpose)
238238

239239
@classmethod
240240
async def afind_matching_files(
@@ -258,4 +258,4 @@ async def afind_matching_files(
258258
organization=organization,
259259
)
260260
).get("data", [])
261-
return cls.__find_matching_files(name, all_files, purpose)
261+
return cls.__find_matching_files(name, bytes, all_files, purpose)

0 commit comments

Comments
 (0)