Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
OpenAI.V1.VectorStores.Files
Contents
Description
/v1/vector_stores/:vector_store_id/files
Synopsis
- newtype VectorStoreFileID = VectorStoreFileID {}
- data CreateVectorStoreFile = CreateVectorStoreFile {}
- _CreateVectorStoreFile :: CreateVectorStoreFile
- data VectorStoreFileObject = VectorStoreFileObject {}
- type API = "vector_stores" :> (Header' '[Required, Strict] "OpenAI-Beta" Text :> ((Capture "vector_store_id" VectorStoreID :> ("files" :> (ReqBody '[JSON] CreateVectorStoreFile :> Post '[JSON] VectorStoreFileObject))) :<|> ((Capture "vector_store_id" VectorStoreID :> ("files" :> (QueryParam "limit" Natural :> (QueryParam "order" Order :> (QueryParam "after" Text :> (QueryParam "before" Text :> (QueryParam "filter" Status :> Get '[JSON] (ListOf VectorStoreFileObject)))))))) :<|> ((Capture "vector_store_id" VectorStoreID :> ("files" :> (Capture "file_id" VectorStoreFileID :> Get '[JSON] VectorStoreFileObject))) :<|> (Capture "vector_store_id" VectorStoreID :> ("files" :> (Capture "file_id" VectorStoreFileID :> Delete '[JSON] DeletionStatus)))))))
Main types
newtype VectorStoreFileID Source #
Vector store file ID
Constructors
VectorStoreFileID | |
Instances
data CreateVectorStoreFile Source #
Request body for /v1/vector_stores/:vector_store_id/files
Constructors
CreateVectorStoreFile | |
Fields |
Instances
data VectorStoreFileObject Source #
A list of files attached to a vector store
Constructors
VectorStoreFileObject | |
Fields
|
Instances
Servant
type API = "vector_stores" :> (Header' '[Required, Strict] "OpenAI-Beta" Text :> ((Capture "vector_store_id" VectorStoreID :> ("files" :> (ReqBody '[JSON] CreateVectorStoreFile :> Post '[JSON] VectorStoreFileObject))) :<|> ((Capture "vector_store_id" VectorStoreID :> ("files" :> (QueryParam "limit" Natural :> (QueryParam "order" Order :> (QueryParam "after" Text :> (QueryParam "before" Text :> (QueryParam "filter" Status :> Get '[JSON] (ListOf VectorStoreFileObject)))))))) :<|> ((Capture "vector_store_id" VectorStoreID :> ("files" :> (Capture "file_id" VectorStoreFileID :> Get '[JSON] VectorStoreFileObject))) :<|> (Capture "vector_store_id" VectorStoreID :> ("files" :> (Capture "file_id" VectorStoreFileID :> Delete '[JSON] DeletionStatus))))))) Source #
Servant API