chatgpt ui

This commit is contained in:
AceDataCloud committed 2023-04-06 20:13:16 +08:00
1 parent 523ab178a4
commit ed43ab5afd
24 files changed
+495 -34

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import { AxiosResponse } from 'axios';
import { httpClient } from '../../instance';
import { IRequest, IResponse } from './models';
export interface IQuery {
token: string;
}
const baseUrl = 'https://api.zhishuyun.com';
class ChatGPTOperator {
async post(data: IRequest, query: IQuery): Promise<AxiosResponse<IResponse>> {
return await httpClient.post(`/chatgpt`, data, {
params: query,
baseURL: baseUrl
});
}
}
export const chatgptOperator = new ChatGPTOperator();