refactor: remove gpt demo

This commit is contained in:
Tristan Yang
2023-04-11 09:39:37 +08:00
parent b700a24011
commit 8d3fd646c3
4 changed files with 0 additions and 78 deletions
-1
View File
@@ -27,7 +27,6 @@ const whiteList = [
"createAdmin",
"getBotRelatedChannels",
"sendMessageByBot",
"replyWithChatGPT",
"getAgoraVoicingList"
];
-8
View File
@@ -195,13 +195,6 @@ export const messageApi = createApi({
}
}
}),
replyWithChatGPT: builder.mutation<{ message: string, prompt: string }, string>({
query: (prompt) => ({
url: `https://official.voce.chat/chatgpt/complete`,
method: "POST",
body: { prompt, api_key: "test" }
})
}),
replyMessage: builder.mutation<
number,
{ from_uid: number, reply_mid: number; content: string; type: ContentTypeKey, properties?: {} }
@@ -265,6 +258,5 @@ export const {
useLazyDeleteMessageQuery,
useReadMessageMutation,
useCreateArchiveMutation,
useReplyWithChatGPTMutation,
useLazyLoadMoreMessagesQuery
} = messageApi;