Skip to content

Commit

Permalink
fix(vectorStores): correct uploadAndPoll method (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored May 3, 2024
1 parent dfae409 commit d63f22c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/beta/vector-stores/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class Files extends APIResource {
file: Uploadable,
options?: Core.RequestOptions & { pollIntervalMs?: number },
): Promise<VectorStoreFile> {
const fileInfo = await this._client.files.create({ file: file, purpose: 'assistants' }, options);
const fileInfo = await this.upload(vectorStoreId, file, options);
return await this.poll(vectorStoreId, fileInfo.id, options);
}
}
Expand Down

0 comments on commit d63f22c

Please sign in to comment.