Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
/v1/vector_stores/:vector_store_id/file_batches
Synopsis
- newtype VectorStoreFileBatchID = VectorStoreFileBatchID {}
- data CreateVectorStoreFileBatch = CreateVectorStoreFileBatch {
- file_ids :: Vector FileID
- chunking_strategy :: Maybe ChunkingStrategy
- _CreateVectorStoreFileBatch :: CreateVectorStoreFileBatch
- data VectorStoreFilesBatchObject = VectorStoreFilesBatchObject {}
- type API = "vector_stores" :> (Header' '[Required, Strict] "OpenAI-Beta" Text :> ((Capture "vector_store_id" VectorStoreID :> ("file_batches" :> (ReqBody '[JSON] CreateVectorStoreFileBatch :> Post '[JSON] VectorStoreFilesBatchObject))) :<|> ((Capture "vector_store_id" VectorStoreID :> ("file_batches" :> (Capture "batch_id" VectorStoreFileBatchID :> Get '[JSON] VectorStoreFilesBatchObject))) :<|> ((Capture "vector_store_id" VectorStoreID :> ("file_batches" :> (Capture "batch_id" VectorStoreFileBatchID :> ("cancel" :> Post '[JSON] VectorStoreFilesBatchObject)))) :<|> (Capture "vector_store_id" VectorStoreID :> ("file_batches" :> (Capture "batch_id" VectorStoreFileBatchID :> ("files" :> (QueryParam "limit" Natural :> (QueryParam "order" Order :> (QueryParam "after" Text :> (QueryParam "before" Text :> (QueryParam "filter" Status :> Get '[JSON] (ListOf VectorStoreFilesBatchObject))))))))))))))
Main types
newtype VectorStoreFileBatchID Source #
Vector store file batch ID
Instances
data CreateVectorStoreFileBatch Source #
Request body for /v1/vector_stores/:vector_store_id/file_batches
Instances
_CreateVectorStoreFileBatch :: CreateVectorStoreFileBatch Source #
Default CreateVectorStoreFileBatch
data VectorStoreFilesBatchObject Source #
A batch of files attached to a vector store
VectorStoreFilesBatchObject | |
|
Instances
Servant
type API = "vector_stores" :> (Header' '[Required, Strict] "OpenAI-Beta" Text :> ((Capture "vector_store_id" VectorStoreID :> ("file_batches" :> (ReqBody '[JSON] CreateVectorStoreFileBatch :> Post '[JSON] VectorStoreFilesBatchObject))) :<|> ((Capture "vector_store_id" VectorStoreID :> ("file_batches" :> (Capture "batch_id" VectorStoreFileBatchID :> Get '[JSON] VectorStoreFilesBatchObject))) :<|> ((Capture "vector_store_id" VectorStoreID :> ("file_batches" :> (Capture "batch_id" VectorStoreFileBatchID :> ("cancel" :> Post '[JSON] VectorStoreFilesBatchObject)))) :<|> (Capture "vector_store_id" VectorStoreID :> ("file_batches" :> (Capture "batch_id" VectorStoreFileBatchID :> ("files" :> (QueryParam "limit" Natural :> (QueryParam "order" Order :> (QueryParam "after" Text :> (QueryParam "before" Text :> (QueryParam "filter" Status :> Get '[JSON] (ListOf VectorStoreFilesBatchObject)))))))))))))) Source #
Servant API