add switch api

This commit is contained in:
AceDataCloud committed 2023-04-19 02:48:49 +08:00
1 parent cf22897a6c
commit f047c9b62f
6 files changed
+166 -71

No files matched your search

+11
View File
@@ -15,3 +15,14 @@ class ChatGPTOperator {
}
export const chatgptOperator = new ChatGPTOperator();
class ChatGPT4Operator {
async post(data: IRequest, query: IQuery, config?: AxiosRequestConfig): Promise<AxiosResponse<IResponse>> {
return await axios.post(`/chatgpt4`, data, {
...config,
params: query
});
}
}
export const chatgpt4Operator = new ChatGPT4Operator();