mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-27 01:00:27 +03:00
Feature/Custom Assistant Builder (#3631)
* add custom assistant builder * add tools to custom assistant * add save assistant button
This commit is contained in:
@@ -8,7 +8,7 @@ const getAllAvailableAssistants = (credentialId) => client.get(`/openai-assistan
|
||||
// Assistant
|
||||
const createNewAssistant = (body) => client.post(`/assistants`, body)
|
||||
|
||||
const getAllAssistants = () => client.get('/assistants')
|
||||
const getAllAssistants = (type) => client.get('/assistants?type=' + type)
|
||||
|
||||
const getSpecificAssistant = (id) => client.get(`/assistants/${id}`)
|
||||
|
||||
@@ -44,6 +44,12 @@ const uploadFilesToAssistant = (credentialId, formData) =>
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
})
|
||||
|
||||
const getChatModels = () => client.get('/assistants/components/chatmodels')
|
||||
const getDocStores = () => client.get('/assistants/components/docstores')
|
||||
const getTools = () => client.get('/assistants/components/tools')
|
||||
|
||||
const generateAssistantInstruction = (body) => client.post(`/assistants/generate/instruction`, body)
|
||||
|
||||
export default {
|
||||
getAllAssistants,
|
||||
getSpecificAssistant,
|
||||
@@ -59,5 +65,9 @@ export default {
|
||||
uploadFilesToAssistant,
|
||||
uploadFilesToAssistantVectorStore,
|
||||
deleteFilesFromAssistantVectorStore,
|
||||
deleteAssistantVectorStore
|
||||
deleteAssistantVectorStore,
|
||||
getChatModels,
|
||||
getDocStores,
|
||||
getTools,
|
||||
generateAssistantInstruction
|
||||
}
|
||||
|
||||
@@ -27,6 +27,8 @@ const getVectorStoreProviders = () => client.get('/document-store/components/vec
|
||||
const getEmbeddingProviders = () => client.get('/document-store/components/embeddings')
|
||||
const getRecordManagerProviders = () => client.get('/document-store/components/recordmanager')
|
||||
|
||||
const generateDocStoreToolDesc = (storeId, body) => client.post('/document-store/generate-tool-desc/' + storeId, body)
|
||||
|
||||
export default {
|
||||
getAllDocumentStores,
|
||||
getSpecificDocumentStore,
|
||||
@@ -49,5 +51,6 @@ export default {
|
||||
deleteVectorStoreDataFromStore,
|
||||
updateVectorStoreConfig,
|
||||
saveProcessingLoader,
|
||||
refreshLoader
|
||||
refreshLoader,
|
||||
generateDocStoreToolDesc
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user