Skip to main content
Module

x/openai/resources/beta/vector-stores/files.ts>Files#upload

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
method Files.prototype.upload
import { Files } from "https://deno.land/x/openai@v4.52.7/resources/beta/vector-stores/files.ts";

Upload a file to the files API and then attach it to the given vector store.

Note the file will be asynchronously processed (you can use the alternative polling helper method to wait for processing to complete).

Parameters

vectorStoreId: string
optional
options: Core.RequestOptions