Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
OpenAI.V1.VectorStores.FileBatches
Contents
Description
/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
Constructors
VectorStoreFileBatchID | |
Instances
FromJSON VectorStoreFileBatchID Source # | |
Defined in OpenAI.V1.VectorStores.FileBatches Methods parseJSON :: Value -> Parser VectorStoreFileBatchID # parseJSONList :: Value -> Parser [VectorStoreFileBatchID] # | |
ToJSON VectorStoreFileBatchID Source # | |
Defined in OpenAI.V1.VectorStores.FileBatches Methods toJSON :: VectorStoreFileBatchID -> Value # toEncoding :: VectorStoreFileBatchID -> Encoding # toJSONList :: [VectorStoreFileBatchID] -> Value # toEncodingList :: [VectorStoreFileBatchID] -> Encoding # omitField :: VectorStoreFileBatchID -> Bool # | |
IsString VectorStoreFileBatchID Source # | |
Defined in OpenAI.V1.VectorStores.FileBatches Methods | |
Show VectorStoreFileBatchID Source # | |
Defined in OpenAI.V1.VectorStores.FileBatches Methods showsPrec :: Int -> VectorStoreFileBatchID -> ShowS # show :: VectorStoreFileBatchID -> String # showList :: [VectorStoreFileBatchID] -> ShowS # | |
ToHttpApiData VectorStoreFileBatchID Source # | |
Defined in OpenAI.V1.VectorStores.FileBatches |
data CreateVectorStoreFileBatch Source #
Request body for /v1/vector_stores/:vector_store_id/file_batches
Constructors
CreateVectorStoreFileBatch | |
Fields
|
Instances
_CreateVectorStoreFileBatch :: CreateVectorStoreFileBatch Source #
Default CreateVectorStoreFileBatch
data VectorStoreFilesBatchObject Source #
A batch of files attached to a vector store
Constructors
VectorStoreFilesBatchObject | |
Fields
|
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