Skip to content

Commit 3968ef1

Browse files
authored
docs(readme): fix incorrect fileBatches.uploadAndPoll params (#1200)
1 parent e34981c commit 3968ef1

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
@@ -133,7 +133,7 @@ const fileList = [
133133
...
134134
];
135135

136-
const batch = await openai.vectorStores.fileBatches.uploadAndPoll(vectorStore.id, fileList);
136+
const batch = await openai.vectorStores.fileBatches.uploadAndPoll(vectorStore.id, {files: fileList});
137137
```
138138

139139
### Streaming Helpers

0 commit comments

Comments
 (0)