add switch api
This commit is contained in:
1 parent
cf22897a6c
commit
f047c9b62f
6 files changed
+166
-71
No files matched your search
@@ -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();
|
||||
Reference in new issue
Block a user