openai-1.0.0: Servant bindings to OpenAI
Safe HaskellSafe-Inferred
LanguageHaskell2010

OpenAI.V1.VectorStores.FileBatches

Description

/v1/vector_stores/:vector_store_id/file_batches
Synopsis

Main types

newtype VectorStoreFileBatchID Source #

Vector store file batch ID

Constructors

VectorStoreFileBatchID 

Fields

data CreateVectorStoreFileBatch Source #

Request body for /v1/vector_stores/:vector_store_id/file_batches

Instances

Instances details
ToJSON CreateVectorStoreFileBatch Source # 
Instance details

Defined in OpenAI.V1.VectorStores.FileBatches

Generic CreateVectorStoreFileBatch Source # 
Instance details

Defined in OpenAI.V1.VectorStores.FileBatches

Associated Types

type Rep CreateVectorStoreFileBatch :: Type -> Type #

Show CreateVectorStoreFileBatch Source # 
Instance details

Defined in OpenAI.V1.VectorStores.FileBatches

type Rep CreateVectorStoreFileBatch Source # 
Instance details

Defined in OpenAI.V1.VectorStores.FileBatches

type Rep CreateVectorStoreFileBatch = D1 ('MetaData "CreateVectorStoreFileBatch" "OpenAI.V1.VectorStores.FileBatches" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) (C1 ('MetaCons "CreateVectorStoreFileBatch" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector FileID)) :*: S1 ('MetaSel ('Just "chunking_strategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ChunkingStrategy))))

data VectorStoreFilesBatchObject Source #

A batch of files attached to a vector store

Instances

Instances details
FromJSON VectorStoreFilesBatchObject Source # 
Instance details

Defined in OpenAI.V1.VectorStores.FileBatches

Generic VectorStoreFilesBatchObject Source # 
Instance details

Defined in OpenAI.V1.VectorStores.FileBatches

Associated Types

type Rep VectorStoreFilesBatchObject :: Type -> Type #

Show VectorStoreFilesBatchObject Source # 
Instance details

Defined in OpenAI.V1.VectorStores.FileBatches

type Rep VectorStoreFilesBatchObject Source # 
Instance details

Defined in OpenAI.V1.VectorStores.FileBatches

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