LS Prompt Hub: Moving calls to server side and adding functionality to show the detailed prompt

This commit is contained in:
vinodkiran
2023-11-27 22:42:04 +05:30
parent 4a3e1784d8
commit 8897dd9c5f
4 changed files with 144 additions and 43 deletions
+9
View File
@@ -0,0 +1,9 @@
import client from './client'
const getAvailablePrompts = (body) => client.post(`/prompts-list`, body)
const getPrompt = (body) => client.post(`/load-prompt`, body)
export default {
getAvailablePrompts,
getPrompt
}