mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 13:00:56 +03:00
Feature/add ability to upload file from chat (#3059)
add ability to upload file from chat
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
import client from './client'
|
||||
|
||||
const upsertVectorStore = (id, input) => client.post(`/vector/internal-upsert/${id}`, input)
|
||||
const upsertVectorStoreWithFormData = (id, formData) =>
|
||||
client.post(`/vector/internal-upsert/${id}`, formData, {
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
})
|
||||
const getUpsertHistory = (id, params = {}) => client.get(`/upsert-history/${id}`, { params: { order: 'DESC', ...params } })
|
||||
const deleteUpsertHistory = (ids) => client.patch(`/upsert-history`, { ids })
|
||||
|
||||
export default {
|
||||
getUpsertHistory,
|
||||
upsertVectorStore,
|
||||
upsertVectorStoreWithFormData,
|
||||
deleteUpsertHistory
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user