feat: Submit Feedback #2088 (#2134)

### What problem does this PR solve?

feat: Submit Feedback #2088

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-28 16:39:21 +08:00
committed by GitHub
parent f843dd05e5
commit 54f7c6ea8e
10 changed files with 185 additions and 26 deletions

View File

@ -20,6 +20,9 @@ const {
getExternalConversation,
completeExternalConversation,
uploadAndParseExternal,
deleteMessage,
thumbup,
tts,
} = api;
const methods = {
@ -91,6 +94,18 @@ const methods = {
url: uploadAndParseExternal,
method: 'post',
},
deleteMessage: {
url: deleteMessage,
method: 'post',
},
thumbup: {
url: thumbup,
method: 'post',
},
tts: {
url: tts,
method: 'post',
},
} as const;
const chatService = registerServer<keyof typeof methods>(methods, request);