Skip to content

Commit e5daa8a

Browse files
committed
fixed incorrect fileBatches.uploadAndPoll params in README.md
1 parent a92cc1d commit e5daa8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const fileList = [
128128
...
129129
];
130130

131-
const batch = await openai.vectorStores.fileBatches.uploadAndPoll(vectorStore.id, fileList);
131+
const batch = await openai.vectorStores.fileBatches.uploadAndPoll(vectorStore.id, {files: fileList});
132132
```
133133

134134
### Streaming Helpers

0 commit comments

Comments
 (0)