We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfae409 commit df516b7Copy full SHA for df516b7
src/resources/beta/vector-stores/files.ts
@@ -164,7 +164,7 @@ export class Files extends APIResource {
164
file: Uploadable,
165
options?: Core.RequestOptions & { pollIntervalMs?: number },
166
): Promise<VectorStoreFile> {
167
- const fileInfo = await this._client.files.create({ file: file, purpose: 'assistants' }, options);
+ const fileInfo = await this.upload(vectorStoreId, file, options);
168
return await this.poll(vectorStoreId, fileInfo.id, options);
169
}
170
0 commit comments