This commit is contained in:
2025-09-17 12:33:50 +02:00
parent bd7b2348ce
commit 49a2b9f09b
3 changed files with 50 additions and 25 deletions

View File

@@ -106,5 +106,5 @@ export const chatbotApi = {
update: async (id: string, data: any) => apiClient.put(`/api/chatbot/update/${id}`, data),
delete: async (id: string) => apiClient.delete(`/api/chatbot/delete/${id}`),
chat: async (id: string, message: string, config?: any) =>
apiClient.post(`/api/chatbot/chat`, { chatbot_id: id, message, ...config }),
apiClient.post(`/api/chatbot/chat/${id}`, { message, ...config }),
};